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
Can we use static class instead of singleton?
What is a protected method?
Does substring start with 0?
Explain wait(), notify() and notifyall() methods of object class ?
How do you remove all elements from an arraylist in java?
What are the 6 mandatory procedures for iso 9001?
What is constant in programming?
How to reverse a string in java?
Explain try and catch keywords in java?
Can we write any code after throw statement?
Which class is the superclass of all classes?
What is the properties class in java programming?
what is the difference between yielding and sleeping? : Java thread
What is an example of declaration?
Tell us something about set interface.