What is JAVA? Why it is platform independent?

Answer Posted / nitu

Mr. Rock i think u should get the answer "what is platform
in dependent?" every os and every machine has its own code
which is known as "MACHINE CODE". I think you know about
asamblly language that is MACHINE CODE. so when we execute
java file it's class file(byte code) convert into this
machine code & then give output.jvm is a program which
needed to convert byte code file into machine code. & every
programing language need it's own compile and runtime
environment. so we always install aproprite tool for each
language.

platform independance means if u compile any progaram one
machine which run on particular os & then u take this
compiled progaram to any other machine which have not same
os still it runs and gives output.

thus we need every language's compiler to run the program.
even if you want to make resume you have to install atlist
ms word.

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between checked exception and unchecked exception?

530


What is the difference between a window and a frame in java programming?

596


Is null a string or object in java?

550


What is the use of pattern in java?

511


Why string is not a wrapper class?

644






Which package is imported by default?

635


what is collatration?

2743


Difference between this() and super() in java ?

616


What does indexof mean?

533


What is collections framework?

578


Why there are some null interface in java? What does it mean?

644


How are java objects passed to a method and what are native methods?

592


What is numeric function?

542


What is java used for on a computer?

509


Is hashmap thread safe?

559