Curriculum
Course: Learn Java Programming
time left:
:
:
Login

Curriculum

Learn Java Programming

Quiz

Overview of Java and Its Features

Submit quiz
Once you submit, you will no longer be able to change your answers. Are you sure you want to submit the quiz?
1.
What is the purpose of garbage collection in Java?
Memory optimization
Error detection
Syntax checking
Code optimization
2.
Who is the creator of Java?
Bjarne Stroustrup
James Gosling
Guido van Rossum
Dennis Ritchie
3.
In Java, encapsulation is primarily achieved through:
Interfaces
Inheritance
The use of public classes only
The use of private variables and public methods
4.
What does Just-In-Time (JIT) compiler do in Java?
Converts Java source code directly into machine code.
Converts bytecode into machine code at runtime to improve performance.
Loads classes into memory.
Checks the bytecode for security issues.
5.
What was the original name of Java?
Espresso
Oak
Latte
Mocha
6.
Java was originally developed by which company?
Microsoft
Apple
Sun Microsystems
IBM
7.
Which of these is a feature of Java 8?
Generics
Lambda Expressions
Inner Classes
Swing
8.
Which of the following is a part of Java Runtime Environment (JRE)?
Java Compiler
Integrated Development Environment (IDE)
Java Virtual Machine (JVM)
Java Development Kit (JDK)
9.
Which principle is not followed by Java?
Encapsulation
Inheritance
Multiple inheritance using classes
Polymorphism
10.
What is the extension of compiled Java classes?
filename.java
classname.class
filename.class
classname.java
11.
In which year was Java first released for commercial use?
1991
1995
1998
2000
12.
What does JVM stand for in Java?
Java Virtual Machine
Java Versatile Machine
Java Variable Mechanism
Java Verification Method
13.
Which one of the following is not a Java feature?
Object-oriented
Use of pointers
Platform-independent
Secure
14.
What does the term 'Polymorphism' refer to in Java?
The ability to define multiple variables in a single declaration
The ability to create new classes from existing ones
The ability of a method to perform different tasks based on the object that it is acting upon
The ability of a variable to hold multiple types
15.
What is bytecode in Java?
The code written in Java
The code that runs on Java Virtual Machine
Machine code
A type of encryption
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15