Variables and Data Types
OOP
Control flow and array
Strings and exceptions
Advanced Jaba basics
100

This data type holds only two possible values: true or false

What is a boolean?

100

This OOP blueprint defines the properties and behaviors that its objects will possess.

What is a class?

100

This loop is designed to execute its block of code at least once before checking the conditional expression.

What is a do-while loop?

100

This term describes Java Strings because their values cannot be modified once they are created in memory.

What is immutable?

100

This special method serves as the mandatory execution starting point for any standalone Java application

What is the main method?

200

This is the default primitive data type used for whole numbers in Java.

What is an int?

200

This OOP pillar restricts direct access to object components by using private variables and public methods.

What is encapsulation?

200

This jump statement immediately terminates the innermost loop or switch statement it resides in.

What is a break statement?

200

This class should be used instead of a standard String when you need to perform frequent, heavy modifications in a single-threaded environment.

What is StringBuilder?

200

This keyword allows a class to implement multiple behaviors, bypassing Java's restriction on multiple class inheritance.

 What is implements (or interface)?

300

You use this keyword to declare a variable whose value cannot be changed after assignment.

What is final?

300

This keyword is used by a subclass to explicitly call a constructor or method from its parent class

What is super?

300

This read-only property returns the total number of elements stored inside a Java array.

What is length?

300

This keyword is used in a method header to declare that the method might pass specific exceptions up the call stack.

What is throws?

300

This standard library package containing essential classes like String, Math, and System is automatically imported into every Java file.

What is java.lang?

400

This occurs when you explicitly cast a larger primitive type, like a double, into a smaller type, like an int.


    • What is narrowing conversion (or explicit casting)?
  • $
400

This mechanism allows a subclass to provide a specific implementation of a method that is already defined by its superclass.

What is method overriding?

400

This specific exception is thrown if you try to access index 5 in an array that only contains 3 items.

What is ArrayIndexOutOfBoundsException?

400

This code block always runs after a try-catch block finishes, regardless of whether an exception was thrown or caught.


What is finally?

400

This memory area is where Java allocates space for all newly created objects and instance variables.

What is the heap?

500

This is the default value assigned to an uninitialized object reference variable in a class.

What is null?

500

Unlike a standard interface, this type of class can contain both abstract methods and fully implemented methods with state.

What is an abstract class?



500

This enhanced loop syntax simplifies iterating through arrays and collections without using an explicit index counter.

What is a for-each loop (or enhanced for loop)?

500

This method must be used to check if two separate String objects contain the exact same characters, rather than using the == operator.

What is equals()?

500

This automated Java system reclaims heap memory by destroying objects that are no longer reachable by the program.

What is the Garbage Collector?