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.

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

What does the Compiler do?

A

It converts code into bytecode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

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