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


Please Help Members By Posting Answers For Below Questions

What is the method to expand and collapse nodes in a jtree?

612


Can we create an object of static class in java?

598


What are multiple inheritances?

585


How do you avoid global variables?

543


What is the use of runnable interface?

615






What is the default value of local and global variables?

571


How do you check if two strings are equal in java?

589


Is namespace same as package in java?

545


Add a value x to array from index l to r where 0 <= l <= r <= n-1

633


Explain the features of interfaces in java?

558


What is a 16 bit word?

567


What are parameters in a method?

587


What is the public method modifier?

546


Mention some interfaces implemented by linked list in java.

543


Is void a return type?

555