Java Certification Exam Questions and
Answers (Solved Papers)
Computers cannot understand _________ languages, they
understand only _______ language - Correct Answers
✅high-level; binary
What two things help convert programs into binary language?
- Correct Answers ✅The compiler and interpreter
What does the compiler do? - Correct Answers ✅Coverts
source code into byte code
What does the interpreter do? - Correct Answers ✅Reads
the byte code produced by the compiler, converts it to
binary/machine language, and executes it
What is JDK? - Correct Answers ✅Java Development Kit.
Takes care of the development, compilation and execution of
programs.
2 main components: development tools and the JRE.
What are the development tools provided by JDK? (2) -
Correct Answers ✅1. The Compiler: produces Java
bytecode conforming to the Java Virtual Machine Specification
(JVMS)
2. The Java Launcher: helps in launching a Java application
during execution.
,Java Certification Exam Questions and
Answers (Solved Papers)
What is JRE? - Correct Answers ✅Java Runtime
Environment. The environment where you develop and
execute Java programs.
2 main components: JVM and Java standard class library
What is JVM? - Correct Answers ✅Java Virtual Machine.
Enables the computer to run Java programs.
Why does Java provide a standard class library? - Correct
Answers ✅Java Platform is not dependent on a specific
operating system and hence applications cannot rely on any
of the platform-native libraries.
What is the Java standard class library? - Correct Answers
✅provides a set of standard class libraries containing
functions common to modern operating systems.
What is the extension for files of byte code that the compiler
creates? - Correct Answers ✅.class
What does the class loader within the JVM do? - Correct
Answers ✅Loads all the class files needed for execution
What does the byte code verifier within the JVM do? - Correct
Answers ✅Checks code fragments for illegal code
, Java Certification Exam Questions and
Answers (Solved Papers)
What does the JIT compiler within the JVM do? - Correct
Answers ✅Compiles reusable byte code to machine code
What is a platform independent program? - Correct
Answers ✅A program written on a particular platform that
can run on other platforms without any recompilation
Java is not platform independent (T/F) - Correct Answers
✅FALSE it is
What is an identifier? - Correct Answers ✅name given to a
variable, method or class to uniquely identify it.
Primitive vs Reference (Non-primitive) data types - Correct
Answers ✅Primitive: holds the value of the object
Reference: holds the reference to the memory location of the
object
Integer data types in order (largest to smallest) - Correct
Answers ✅1. double
2. long
3. int & float
4. short
Answers (Solved Papers)
Computers cannot understand _________ languages, they
understand only _______ language - Correct Answers
✅high-level; binary
What two things help convert programs into binary language?
- Correct Answers ✅The compiler and interpreter
What does the compiler do? - Correct Answers ✅Coverts
source code into byte code
What does the interpreter do? - Correct Answers ✅Reads
the byte code produced by the compiler, converts it to
binary/machine language, and executes it
What is JDK? - Correct Answers ✅Java Development Kit.
Takes care of the development, compilation and execution of
programs.
2 main components: development tools and the JRE.
What are the development tools provided by JDK? (2) -
Correct Answers ✅1. The Compiler: produces Java
bytecode conforming to the Java Virtual Machine Specification
(JVMS)
2. The Java Launcher: helps in launching a Java application
during execution.
,Java Certification Exam Questions and
Answers (Solved Papers)
What is JRE? - Correct Answers ✅Java Runtime
Environment. The environment where you develop and
execute Java programs.
2 main components: JVM and Java standard class library
What is JVM? - Correct Answers ✅Java Virtual Machine.
Enables the computer to run Java programs.
Why does Java provide a standard class library? - Correct
Answers ✅Java Platform is not dependent on a specific
operating system and hence applications cannot rely on any
of the platform-native libraries.
What is the Java standard class library? - Correct Answers
✅provides a set of standard class libraries containing
functions common to modern operating systems.
What is the extension for files of byte code that the compiler
creates? - Correct Answers ✅.class
What does the class loader within the JVM do? - Correct
Answers ✅Loads all the class files needed for execution
What does the byte code verifier within the JVM do? - Correct
Answers ✅Checks code fragments for illegal code
, Java Certification Exam Questions and
Answers (Solved Papers)
What does the JIT compiler within the JVM do? - Correct
Answers ✅Compiles reusable byte code to machine code
What is a platform independent program? - Correct
Answers ✅A program written on a particular platform that
can run on other platforms without any recompilation
Java is not platform independent (T/F) - Correct Answers
✅FALSE it is
What is an identifier? - Correct Answers ✅name given to a
variable, method or class to uniquely identify it.
Primitive vs Reference (Non-primitive) data types - Correct
Answers ✅Primitive: holds the value of the object
Reference: holds the reference to the memory location of the
object
Integer data types in order (largest to smallest) - Correct
Answers ✅1. double
2. long
3. int & float
4. short