How java is platform independent?
Answer Posted / bipin kumar behera
1.java solves the problem of platform-independence by using
byte code. The Java compiler does not produce native
executable code for a particular machine like a C compiler
would. Instead it produces a format called byte
code. Java byte code written in hexadecimal.
2.This format is same in every operatingf system like Solaris workstation,linux.After comilation the interpreter reads the
the byte code and translate according to the host machine.
3.Byte code is interprted in JVM.which avalibale in all operating systems.that we install.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How will you get the platform dependent values like line separator, path separator, etc., ?
What do you mean by scope of variable?
What is the largest data type in java?
What will happen if a thrown exception is not handled?
What does serializing data mean?
What is percentage in java?
What is e java?
Is this valid in java ? Can we instantiate interface in java?
Can set contain duplicates?
Explain the public class modifier?
What are different types of inner classes ?
Explain when we should make an instance variable private.
How many types of constructors are used in java?
What does the exclamation mark mean in java?
Can we use String with switch case?