Java Flashcards
1
Q
What is the JDK
A
JDK is Java Development Kit and is a package that contains tools for making programs using Java. Tools like the Compiler and the Java Virtual Machine.
2
Q
What does the Compiler do?
A
It converts code into bytecode.
3
Q
What does the JVM do?
A
JVM is a software layer between Java code and the machine running the software. It acts like a translator between the compiled Java code and the machine’s bytecode.
4
Q
What is the purpose of the Comparable interface?
A
I provides the compareTo() method which allows comparing an object with other objects of the same type.