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 is the destroy method?
Why do I need to declare the type of a variable in java?
When super keyword is used?
What is the difference between numeric and integer?
How do you sort data in java?
Which class represents the socket that both the client and server use to communicate with each other?
What is boolean strategy?
What is the generic class?
What is the purpose of methodology?
Can we have multiple public classes in a java source file?
What is an association?
How does enum work in java?
What do you mean by stack?
Can an interface extend another interface?
What’s the difference between constructors and other methods?