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 is sortedmap in java?
How do you trim a space in java?
How do you define a method?
What is the difference between the size and capacity of a vector?
Why declare Main() method as a static in java ?
Can bool be null?
What is final modifier?
What is fail fast in java?
What are functions in java?
How can we make copy of a java object?
What is better- service oriented or batch oriented solutions?
What is a lightweight component?
Write a program to print all permutations of string?
What is unicode used for?
What is the major drawback of internal iteration over external iteration?