LATEST REVATURE – JAVA 2024-2025
QUESTIONS WITH 100% CORRECT ANSWERS
What kind of language is Java - CORRECT ANSWER object-oriented, strongly typed
What is the Garbage Collector - CORRECT ANSWER automatically track memory
allocation and know when to delete objects so you don't have to, thus preventing
memory leaks
write once, run anywhere. What does this mean in Java - CORRECT ANSWER Java
code can be run on any machine that exists a JVM
What is a JVM - CORRECT ANSWER Java Virtual Machine
What files to JVM take in? - CORRECT ANSWER .class files
What are .class files? - CORRECT ANSWER compiled java code
How are .class produced? - CORRECT ANSWER The java compiler, JavaC, complies
.java files
In order to develop in Java, what do developers need? - CORRECT ANSWER They
need the JDK which stands for 'Java Development Kit'
What is the JVM distributed as part of? - CORRECT ANSWER JRE = Java Runtime
Environment
, LATEST REVATURE – JAVA 2024-2025
QUESTIONS WITH 100% CORRECT ANSWERS
What are packages? - CORRECT ANSWER they are similar to departments of a
corporation or colleges of a university
In order to use packages, what must we do? - CORRECT ANSWER we must 'import'
them
How do you initiate a Garbage Collector? - CORRECT ANSWER System.gc()
In a Garbage Collector, which is more likely to be collected first? Newer Objects or Older
Objects - CORRECT ANSWER Newer Objects
When is a object eligible to be garbage-collected? - CORRECT ANSWER Once the
numbers of references drop to 0
What is Encapsulation - CORRECT ANSWER Keeps objects from accessing data they
don't need
What is Inheritance? - CORRECT ANSWER Objects can inherit qualities of other
objects
What is polymorphism? - CORRECT ANSWER Objects can look and fell like other
objects while behaving differently. Can also apply to methods
QUESTIONS WITH 100% CORRECT ANSWERS
What kind of language is Java - CORRECT ANSWER object-oriented, strongly typed
What is the Garbage Collector - CORRECT ANSWER automatically track memory
allocation and know when to delete objects so you don't have to, thus preventing
memory leaks
write once, run anywhere. What does this mean in Java - CORRECT ANSWER Java
code can be run on any machine that exists a JVM
What is a JVM - CORRECT ANSWER Java Virtual Machine
What files to JVM take in? - CORRECT ANSWER .class files
What are .class files? - CORRECT ANSWER compiled java code
How are .class produced? - CORRECT ANSWER The java compiler, JavaC, complies
.java files
In order to develop in Java, what do developers need? - CORRECT ANSWER They
need the JDK which stands for 'Java Development Kit'
What is the JVM distributed as part of? - CORRECT ANSWER JRE = Java Runtime
Environment
, LATEST REVATURE – JAVA 2024-2025
QUESTIONS WITH 100% CORRECT ANSWERS
What are packages? - CORRECT ANSWER they are similar to departments of a
corporation or colleges of a university
In order to use packages, what must we do? - CORRECT ANSWER we must 'import'
them
How do you initiate a Garbage Collector? - CORRECT ANSWER System.gc()
In a Garbage Collector, which is more likely to be collected first? Newer Objects or Older
Objects - CORRECT ANSWER Newer Objects
When is a object eligible to be garbage-collected? - CORRECT ANSWER Once the
numbers of references drop to 0
What is Encapsulation - CORRECT ANSWER Keeps objects from accessing data they
don't need
What is Inheritance? - CORRECT ANSWER Objects can inherit qualities of other
objects
What is polymorphism? - CORRECT ANSWER Objects can look and fell like other
objects while behaving differently. Can also apply to methods