Computer Applications
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.
Related Questions
Fill in the blanks:
In Java, the package used to find the smallest of two numbers is _________.
Applet programming is a feature of which language:
- C
- C++
- Java
- BASIC
Which keyword includes a package in a Java program?
- new
- public
- import
- class
Java is such a programming language which allows creating logic using simple statements. It is also focused on web designing and string manipulation system even without calling default package.
Based on the above discussion, following are some of the features or terms described. Now, answer these questions:
(a) It is a Java program that is executed using Java based web browser.
(b) It is a Windows based platform for Java programming.
(c) It is a default package of Java programming.
(d) It is the executable code suitable to a specific platform, converted from Java source code.