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
Is sizeof a preprocessor?
What variables are stored in stack?
What is a return in java?
Why can't we make a class private in java?
What is vector capacity in java?
What is function and method in java?
What are advantages of exception handling in java?
What’s the difference between unit, integration and functional testing?
What is encapsulation in java?
What is the purpose of file class?
Why is string buffer better than string ?
Can you make a constructor final?
What method is used to specify a container's layout in java programming?
How do you check if a number is a perfect square?
What type of variable is error flag?