How java is platform independent?
Answer Posted / sandeep chauhan
the program is written in any language is called the source
program.and after compilation source code we get the object
code.so in java the source program is in ".java" file.when
this is compiled the object code will be in the ".class"
file.and this object code is bytecode.and this is is not
executable directly by any machine or o.s. so there will be
java virtual machine(jvm) which is an interpreter and
interpret the compiled object code into machine
understandable language.and which is executable for
machine.but every machine have its own jvm.and so this
bytecode can be executed in any machine according to there
jvm.so java is plateform independent language.
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What are different types of expressions?
Can a lock be acquired on a class in java programming?
Why does java have two ways to create child threads? Which way is better?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
Why scanner is used in java?
What do you understand by garbage collection in Java? Can it be forced to run?
Why do we need data serialization?
What are the ways in which a thread can enter the waiting state?
Can we create an object of static class in java?
Is a copy constructor?
How do you override a method?
Which number is denoted by leading 0x or 0x in java?
can used Protected Class outside Function.?
What is a default constraint?
Explain how to convert any java object into byte array.