Why Java is a platform independent language?
Answer Posted / shital mhetre
Platform independent is nothing but write-once
Run-Anywhere.It means program can run on any Operating
System(OS).
compiler Interpreter
Java source code------->M/C code------->Linux or windows
javac JVM
Fig.
When you compile a source code by using javac compiler you
will get .class file which contains byte code.
that byte code can understand by JVM(Java Virtual Machine).
so, the JVM is different for different OS(operating system).
after that the JVM will convert the byte code(by using
interpreter) into machine understandable code i.e 1's & 0's.
Java is compiler as well as Interpreter Programming Language.
| Is This Answer Correct ? | 12 Yes | 6 No |
Post New Answer View All Answers
What are the main differences between the java platform and other platforms?
Is char a method in java?
What is a memory leak in java?
Is java util regex pattern thread safe?
What is application tier?
How do I know if java is installed?
What is public/private protected in java?
Can java program run without jre?
What are methods of a class?
What is maximum size of arraylist in java?
Explain the difference between abstraction and encapsulation.
Can a abstract class be declared final?
What are jee technologies?
What is constructor chaining and how is it achieved in java?
Which collection is ordered in java?