Basic ConceptView more random threads:
- Float datatype in java 2011
- need java source code
- KeyPress Event Handlers in java
- how can we run the java code ? after saving the file how...
- SandBox in java
- Getting the element of a vector in Java 2011
- how PageSpeed Insights works for your page analysis breif...
- is java a throughly OOP
- Updating a JLabel in Java in c++ 2011
- Difference between Java and Netbeans 2011
When you write a program in C++ it is known as source code. The C++ compiler converts this source code into the machine code of underlying system (e.g. Windows) If you want to run that code on Linux you need to recompile it with a Linux based compiler. Due to the difference in compilers, sometimes you need to modify your code.
Java has introduced the concept of WORA (write once run anywhere). When you write a java program it is known as the source code of java. The java compiler does not compile this source code for any underlying hardware system; rather it compiles it for a software system known as JVM (This compiled code is known as byte code). We have different JVMs for different systems (such as JVM for Windows, JVM for Linux etc). When we run our program the JVM interprets (translates) the compiled program into the language understood by the underlying system. So we write our code once and the JVM runs it everywhere according to the underlying system.
Sponsored Links
java virtual machine and basic concept.jpg
This concept is discussed in detail below
Urgent call: 03455242488. | Virtual University Assignments
Virtual University GDBs | Virtual University Papers | Vu Projects | Vu Handouts
About Expert
There are currently 1 users browsing this thread. (0 members and 1 guests)