Core Java Flashcards

(2 cards)

1
Q

Is Java Platform Independent if yes then how?

A

Yes, Java is a Platform Independent language. Unlike many programming languages javac compiles the program to form a bytecode or .class file. This file is independent of the software or hardware running but needs a JVM(Java Virtual Machine) file preinstalled in the operating system for further execution of the bytecode.

Although JVM is platform dependent, the bytecode can be created on any System and can be executed in any other system despite hardware or software being used which makes Java platform independent.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is JVM?

A

JVM stands for Java Virtual Machine it is a Java interpreter. It is responsible for loading, verifying, and executing the bytecode created in Java.

Although it is platform dependent which means the software of JVM is different for different Operating Systems it plays a vital role in making Java platform Independent.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly