How java is platform independent?

Answer Posted / rinky sharma

when java code is compiled a bytecode is generated which is
independent of the system.This bytecode is fed to the JVM
(java virtual machine)which is resided in the system.Since
every system has its own JVM,it does'nt matter where u
compile the source code.The bytecode generated by the
compiler can be interpreted by any JVM of any machine.

Hence it is called platform-indepented language.

Is This Answer Correct ?    62 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between include directive and include action?

784


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

1849


What is int short for?

738


What's the difference between an abstract class and interface in java?

803


Can a class have multiple subclasses?

830


Difference between comparator and comparable in java?

879


What is size () in java?

847


Justify your answer that you can't define a method inside another method in java, if you can then how?

826


How does predicate work in java?

781


What is space character in java?

811


In how many ways we can do exception handling in java?

807


Write java program to reverse string without using api?

767


Can we declare main () method as non static?

730


What type of language is java?

770


What is arguments in java?

759