Why Java is a platform independent language?
Answer Posted / prapanch
platform independent means,the java compiled program can be
run on any operating system.because when you compile a
program you will get a class file which contains byte code
which is specific to java. that byte code can understand by
jvms (java virtual machines).for different operating
systems different jvms will be there.so the jvm will
convert the byte code into machine understandable code.so
as the jvm is different for different operating systems no
need to worry much,that will take care of explaining to the
os.ok.
| Is This Answer Correct ? | 126 Yes | 15 No |
Post New Answer View All Answers
How do you create a sop?
Define class?
What is jit and its use?
How big is a boolean?
What are the advantages of java over cpp?
Explain the available thread states in a high-level?
What is an argument in java?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
Does java allow default arguments?
Explain what access modifiers can be used for variables?
What is nan inf?
what methods would you overwrite in java.lang.object class?
What are the main concepts of oops in java?
Why we do exception handling in java and how many types of exceptions are there?
What happens if constructor is private?