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

Curriculum

Complete Java Programming Course

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 does JVM stand for in Java?
    Java Virtual Machine
    Java Versatile Machine
    Java Variable Mechanism
    Java Verification Method
    2.
    What is bytecode in Java?
    The code written in Java
    The code that runs on Java Virtual Machine
    Machine code
    A type of encryption
    3.
    Which principle is not followed by Java?
    Encapsulation
    Inheritance
    Multiple inheritance using classes
    Polymorphism
    4.
    Who is the creator of Java?
    Bjarne Stroustrup
    James Gosling
    Guido van Rossum
    Dennis Ritchie
    5.
    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
    6.
    In which year was Java first released for commercial use?
    1991
    1995
    1998
    2000
    7.
    Java was originally developed by which company?
    Microsoft
    Apple
    Sun Microsystems
    IBM
    8.
    Which one of the following is not a Java feature?
    Object-oriented
    Use of pointers
    Platform-independent
    Secure
    9.
    What was the original name of Java?
    Espresso
    Oak
    Latte
    Mocha
    10.
    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.
    11.
    What is the purpose of garbage collection in Java?
    Memory optimization
    Error detection
    Syntax checking
    Code optimization
    12.
    What is the extension of compiled Java classes?
    filename.java
    classname.class
    filename.class
    classname.java
    13.
    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)
    14.
    Which of these is a feature of Java 8?
    Generics
    Lambda Expressions
    Inner Classes
    Swing
    15.
    In Java, encapsulation is primarily achieved through:
    Interfaces
    Inheritance
    The use of public classes only
    The use of private variables and public methods
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15