Computer Applications
What makes Java Platform Independent?
Java Intro
3 Likes
Answer
Byte Code & JVM
Reason — Java's platform independence is due to Bytecode and JVM:
- Bytecode — Java programs are compiled into an intermediate code called Bytecode using the Java compiler. Bytecode is platform-independent and can run on any machine.
- Java Virtual Machine (JVM): — The JVM is platform-specific software that interprets or compiles Bytecode into native machine code for the underlying operating system. This allows the same Bytecode to run on any platform making Java platform independent.
Answered By
1 Like
Related Questions
Which keyword includes a package in a Java program?
- new
- public
- import
- class
Assertion (A): In Java, when you declare a class, it displays a sample program for the user.
Reason (R): You cannot write a Java program without the use of a sample program.
Based on the above discussion, choose an appropriate statement from the options given below:
- Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
- Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion(A).
- Assertion (A) is true and Reason (R) is false.
- Assertion (A) is false and Reason (R) is true.
…………… statement displays the result in Java programming.
- System.print()
- Print()
- System.printout()
- System.out.println()