Why java is a platform independent? Explain



Why java is a platform independent? Explain..

Answer / George Boipai

Java is platform-independent because it is compiled into bytecode (class files) that can run on any device with a Java Virtual Machine (JVM). The JVM exists for various platforms, so the same Java code can be executed consistently across different operating systems and hardware.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

how to one war file class to another war file class?

1 Answers  


What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }

5 Answers   Rolta,


what is difference between global methods and local methods?

1 Answers  


Which class is used by server applications to obtain a port and listen for client requests?

1 Answers  


Why is java so important?

1 Answers  


Is assembly language a low level language?

1 Answers  


How does list work in java?

1 Answers  


What is bubble sorting in java?

1 Answers  


What is difference between compatible and incompatible changes in serialization?

1 Answers   Synechron,


What is the properties class?

1 Answers  


Differentiate between stringbuffer and stringbuilder in java.

1 Answers  


What is meant by Servelet? What are the parameters of service method?

2 Answers  


Categories