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
What are the object and class classes used for?
When does an object becomes eligible for garbage collection in java?
Is there a way to increase the size of an array after its declaration?
Can we have a try block without catch block?
What exactly is a .class file?
How can you share data between two thread in Java?
If I only change the return type, does the method become overloaded?
What is t type java?
What happens when a thrown exception is not handled?
What is the main purpose of serialization in java?
What is the purpose class.forname method?
List primitive java types?
What is the use of set in java?
Is empty .java file name a valid source file name?
What is multithreading in java?