What does Java run, operate, or do?

1 Answer

Answer :

answer:This is a bit complicated, but I’ll do my best to explain. At a fundamental level a computer program is simply a series of instructions the CPU in your computer executes in sequence. Programming languages are either compiled or interpreted from code that people understand into code the machine uses to execute those very basic instructions. This code is known as assembly code (which is ultimately converted to machine code). Theoretically you could write a program like Photoshop in pure assembly code, but it would take you several lifetimes and your eyes would start bleeding within a couple of days of trying to work 100% in assembly. Not to mention that version of photoshop you wrote would only ever work on that particular chip architecture. Java is a compiled language, that means you pass your finished code to a Java compiler program which converts your human-readable Java code into assembly code that your CPU understands how to execute (and is really hard for people to understand). The compiler will catch many of your mistakes and will throw errors if you’re trying to violate the “grammar” (more commonly known as “syntax” in programming) of the Java language. One misplaced ’}’ or ’;’ and the whole process of compiling your program will fail. I’m not sure how ask-public is written, so it’s hard to say, but if it was written in Java, then yes, giving someone a GA will trigger code to execute on the server and it will update the webpage to display an incremented number next to the post (as well as other updates in other places). JavaScript and Java are two very different languages, despite both having “Java” in the name. Javascript was named that way as a marketing thing because “Java” was a popular language at the time and it was trying to “ride the coattails” of the Java name. JavaScript is not compiled by the way. It runs in an interpreter. Interpreters are constantly running. They take code and execute it “on the fly” as it comes in instead of having it all finished ahead of time and then converting it to assembly code all at once. A program that was compiled will run much faster than one that’s running in an interpreter, because there’s overhead (memory and CPU usage) involved in running the interpreter. Here’s a way to thing about it: Say there’s a book written in Korean (assuming you don’t speak it). In a compiled language, it would be like having the Korean book translated to English and published in an English book version for you to use. You could jump to any page and start reading the English version. An interpreted version would be like buying the Korean book, and getting your friend who speaks Korean to sit with you and you pointing to a paragraph in the book and having them translate it into English for you while you wait. It’s an inherently slower process to do “on the fly.” Hope that helps a bit.

Related questions

Description : Help with a basic Java program?

Last Answer : answer:just a guide, don’t know java correct the syntax and stuff and this should be your loop. INPUT=B for(A=1; A=0; a=a-1){ print/echo/say ”*”; } print linebreak// } for(A=B; A=>0; A=A-1){ for(a=A; a=>0; a=a-1){ print/echo/say ”*”; } print linebreak// }

Description : Is there any real difference between Java and C#, in terms of capabilities and functionality?

Last Answer : Java is better cross-platform. C# is better for windows development. C# has closures. phoenyx googles I came across these code examples and this wikipedia article which showed some good comparisons.

Description : Objective-C vs. Java?

Last Answer : answer:I'm fairly new to objective-C but have a lot of java experience. Java is a bit more heavyweight because of the JVM, but that overhead is negligible in modern computers. Objective-C seems to ... working primarily with java because all of my work projects (so far) have had to be cross platform.

Description : What is the best way to learn java?

Last Answer : Ditto on that. I also want to know.

Description : How to design webkiz download site with java phone ? If you have a good tutorial, give the link. ?

Last Answer : I can make it. I can make it if I want. Demo 1 Demo 2 Demo 3. If you want to download the code, you will find this link http://abde17.wapkiz.com .

Description : How to download movie on iTel 5231 Java phone. ?

Last Answer : http://Xtrawap.com http://genyt.net http://y2mate.com http://tubidy.Io http://100-youtube.com Download from this site.

Description : How do I submit webkiz site to Google with Java Phone ?

Last Answer : Now you don't have to submit to Google. You see, your site has already been submitted to Google.

Description : Do you have Java phone game download site ?

Last Answer : Yes , Button Phone has a game download site. Click here

Description : I understand what the PL/SQL code below is supposed to do, but when I run the code, it won't compile. Can anybody help with why this is so?

Last Answer : answer:PL\SQL really isn’t my thing, but I believe you need something between the first IF statement and the ELSIF. What do you want it to do with the number if it is 50 or 90?

Description : How do I get pythonw run in the background in a .cmd file?

Last Answer : answer:Use a vbs file to run it invisibly, but you won’t be able to se it in task manager either. Should work with .cmd or anything else really. Set WshShell = CreateObject(“WScript.Shell”) WshShell.Run chr(34) & “yourbatchfile.bat” & Chr(34), 0 Set WshShell = Nothing

Description : Can the human brain run software unaided?

Last Answer : answer:Not unaided, no. I mean… you’d need a USB port or a CD-drive to get it in there. You can’t “install” software into your brain. Running software in your mind would just be using your imagination and/or logic and reasoning.

Description : Salesforce SDK uninstallation from XCode?

Last Answer : Too many variables – only you know your code, how it was written, and how extensible (or not) it was in the first place. I assume you have been to the Saleforce API and SDK pages.

Description : Is there a program where you can identify music in a specific website?

Last Answer : Need Answer

Description : What is a good programming language to make a multiple choice quiz?

Last Answer : Google classroom should work.

Description : Is there a website that shows all the English words, idioms, etc ever invented, including archaic, unofficial, and newest words that have just been invented?

Last Answer : The problem with such a lexicon would be that there have been a lot of slang, dialect, idioms, and unofficial words that 99% of people have never heard of. Besides that, the English language is ... pretty good vocabulary. Hopefully, someone will recommend some. I am unable to do this at the moment.

Description : How can I add HTML markup to this ajax result?

Last Answer : Need Answer

Description : Function or application allowing me to connect or disconnect wifi?

Last Answer : Some routers - Belkins and older Ciscos, had an app that would allow you to remotely-control your router from your phone. You didn't say what kind of router you have, so it's hard to guess. You can ... . Bottom line - you can do this easily if you have a wifi-based power switch and an app. example

Description : How can I become advanced in javascript in 2 months?

Last Answer : Study hard…work hard!!!

Description : Can you help fix this programming problem in Python?

Last Answer : You can’t treat arrays of digits as a single number. The easiest way to read a numeric string is to use the sys library to read a line from the keyboard. import sys print(“Enter value for mass”) mass = sys.stdin.readline() mass = float(mass)

Description : What's the best book for understanding Unity 2D?

Last Answer : Are you a beginner programmer in general, or just new to Unity? That would make a big difference in how I would respond.

Description : Programmers: Is this puzzle a "named problem?" and can you help me with it?

Last Answer : I'd call it enumerating a list of all combinations . There's a field of math called combinatorics which I did not study but I assume probably has a word for this. It doesn't seem like a puzzle ... each iteration, and tweak it to get the output format you want, but that's essentially it, I think.

Description : How do you get the link posted and not the updated page?

Last Answer : You don't have control over it. The URL that you referred to today is pointing to a page that is housed at a server somewhere else. It isn't under your control or Fluther's - it is under the control of ... a month or a year ago. Summary: it isn't under your control. You get the page they send you.

Description : I'm looking for a IT Project Idea for my Final Year. Can anyone suggest something?

Last Answer : How to maintain a question and answer site with trolls, spammers, and questions that violate the guidelines?

Description : How can i improve my skill sets?

Last Answer : You didn't say what you already know, but my main recommendation for something to learn is Python. It's a great learning language, it's free and easy to install, there are great ... and relatively easily. https://www.python.org/about/gettingstarted/ https://www.programiz.com/python-programming

Description : What should I study in order to write/program a career search software?

Last Answer : More programming. And logic. You need to understand how to develop a search for terms, and then also determine where to search, and then how to optimize search results in a relational database.

Description : Is it on all smartphones you can't post a link?

Last Answer : I can’t cut and paste easily with a smart phone. I could type the link by hand. I would have to write it to a pen and paper first and it would work. If I really need too I could boot up my new chrome book and make a link.

Description : How much work does it take to change on a program, from "Monday to Sunday" to whichever 7 days in a row?

Last Answer : It would depend on the individual program.

Description : What coding languages or other courses should I take on CodeCademy?

Last Answer : The courses that I’ve taken I feel are really only useful for Web design.

Description : How do I simply repeat a line of code 4x in Javascript?

Last Answer : something like a for loop is pretty simple, and gives you a handy counter if needed. for(var i = 0; i < 4; i++) { forward(); }

Description : Programming a NEMA 17 stepper motor to microstep with an Arduino?

Last Answer : There are literally thousands of arduino code examples out there. This is something you should figure out on your own because the act of doing so will make you a better tinkerer. A typical stepper will have like ... digital I/o pins to output the step sequence. Even an uno or mini pro will do that.

Description : Programming a stepper to have a "home" position?

Last Answer : Obviously it would need some way to sense or establish its location, or possibly to move or grope about to establish its location. And it could be good to have some logic for noticing when its assumptions about its environment are wrong.

Description : How to become a Game Developer?

Last Answer : There are really two separate questions (or skills) needed here. 1) programming technique. Have you been a programmer; have you developed software before? That's a skill unto itself Programming for a small ... . I can't give you a better answer, because there are so many options to choose from.

Description : Are hand made WP themes safer than downloaded themes?

Last Answer : You might find this articel about Common WordPress Malware Infections interesting It is old, 2012, but still gives you an idea of the kind of things lurking out there. .

Description : Is freelance programming the only way to travel the world while earning decent money on the go?

Last Answer : How about tour guide and air hostess?

Description : What can a 25 year old unemployed Indian Engineer do to start earning at least 50k INR per month in 1 year?

Last Answer : answer:There's a lot of jargon in this post. I fear anyone not already in the industry will have a hard time figuring out what you're saying. I know I'm lost. If you're looking to ... of our regulars are Indian, and thus as a whole we're not terribly familiar with employment culture in India.

Description : Kindles and E-book library loans?

Last Answer : I doubt that you could download the notes from a library lent E-book. What might work better for you is to get an iPad, use the Kindle app for borrowing e-books and then take your notes in the ... worth stopping by your local library to ask them though; maybe there is a better way you can do it.

Description : Is there a drag and drop software to create apps for cell phones and computers?

Last Answer : No there is not but for android the tools are free and there is a good development environment. You can get it from google code. It's java based which is nice since you don't have to mess with pointers and ... of hacks. I'm a below average hack so be prepared to pay someone well to do it for you.

Description : Do you watch your local PBS channel?

Last Answer : answer:I watch it pretty frequently. It always has been and (if it manages to continue far into the future), always will be a favorite. I grew up watching it with my grandma and it's a nice ... full of much nicer people and it's not at all gimmicky like our competitive cooking shows tend to be.

Description : Programmers: Thoughts on this AI game where you fight via code?

Last Answer : answer:Hmm. Cool, but so far I’m stuck on the tutorial with some sort of error: > Game.mothership.moveTo(1,0) undefined

Description : Geometry Gurus. Can you help me solve for an angle?

Last Answer : answer:The simplest solution would indeed be to have an IF ELSE statement there and have two separate cases depending on whether (RadialPointY - CenterPointY) is positive (@Angle < 180) or ... values it actually is cannot be determined without some sort of test of (RadialPointY - CenterPointY).

Description : Any programmers willing to help me solve a triangle?

Last Answer : Are you sure whether your language is using degrees vs. radians for the angle?

Description : Other than "a" is there a single lower case letter in the English alphabet that qualifies as a word?

Last Answer : Possibly because some people write equations into documents? The lowercase i would show up frequently in that context. But I think Word does actually spellcheck the lowercase i into uppercase, and as I’m writing this, I’m being corrected also.

Description : Any Python programmers willing to help me find a bug?

Last Answer : Anything for the sake of science. I will look at the code and see if I can find the bug. As I understand it, you want to find the number of distinct locus values. By just looking at the csv ... just how the parsing is supposed to work. Also, what is the calling sequence to get the program started?

Description : Would it be fun to write computer programs for career counseling ?

Last Answer : answer:Writing a test is a lot different from taking a test. (They aren't really tests , they are more like surveys of interest.) The writer of a career guide questionnaire need to know why ... is writing the questions and then structuring the scoring so as to be an easily used and useful tool.

Description : Do you still use spaghetti code , like QBasic?

Last Answer : talljasperman Sorry I didn’t know that spaghetti code was a pejorative. My teacher called it that and I did not look it up.

Description : MySQL help!

Last Answer : answer:You spelled “propeller” wrong, for one thing. Table SERVICE_REQUEST has a primary key, SERVICE_ID, which is a DECIMAL field. In your attempt to load the table with the error record, the secondary key value you attempted to insert for SERVICE_ID, ‘7’ is a CHAR value. That’s a show-stopper.

Description : Python users, how do I install a library?

Last Answer : I found this. Does it help?

Description : How would one write programs for a quantum computer?

Last Answer : answer:Quantum algorithms do exist, which are the closest thing we have to quantum programs. In order for a complete quantum program to exist, we would have to have a large-scale quantum ... person, but they are both examples of things which quantum computers do faster than normal computers.

Description : I want to make a video games, where do I start?

Last Answer : answer:This may sound vague, but yes, and then some. Seriously, you need a WIDE range of skills to make video games. A wide enough range that most games are made by teams as it's extremely rare to ... , I'd say the best place to start is the concept, followed by the design, then assembling a team.

Description : Can a person write their own apps?

Last Answer : No. You can’t write an app with no programming knowledge. What do you mean when you say “app”? Are you interested in developing a mobile app, some kind of service, or a website of kind? If it’s just a website, you might be able to get away with just setting up a Wordpress blog.