Basic ConceptView more random threads:
- java documentation
- Explain the difference between 2-tier and 3 tier client...
- applet show in page but not show
- JAVA Runescape Applet Problems
- Java is Very similar C/C++ syntax, operators, 2011
- The basic concept of Java Virtual Machine & Runtime...
- Signing Java Applets
- Request for Guidance in java 20111
- Java 6 update 26 - incompatible! Bis
- JAVA Error 1723. There is a problem with this Windows...
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.
java virtual machine and basic concept.jpg
This concept is discussed in detail below
Sponsored Links
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)