OOPs!
Classy!
Click mo nalang!
Huli ka!
Ilagay mo sa labas!
100

This OOP principle restricts direct access to an object’s data and provides methods to access it safely.

What is Encapsulation?

100

A blueprint for creating objects in Java is called a…

What is a Class?

100

A GUI element that displays text or images but does not allow user input is called a…

What is a Label?

100

In Java, code that might throw an exception is placed inside this block.

What is a try/ try block? 

100

try { System.out.println("Start");
        int a = 10;
        int b = 0;
        int result = a / ++b;
        System.out.println("End");
        } catch (ArithmeticException e)
        { System.out.println("Caught an exception");
       } 
   

What is start end?

200

A class can inherit attributes and methods from another class using this OOP concept.

What is inheritance?

200

An instance of a class is referred to as a…

What is an Object?

200

This GUI component allows a user to select multiple options

What is a checkbox / What are checkboxes?

200

DOUBLE POINTS

This block handles an exception if it occurs in the try block. 


What is a catch / catch block?

200

int a = 5, b = 0;
System.out.println((a++ / ++b) + b);

What is 6

300

When a method behaves differently depending on the object that calls it, this concept is in action.

What is polymorphism?

300

This type of method is automatically executed when an object is created.

What is a Constructor?

300

Users can type data into this GUI component, often a single-line area.

What is a Text Field?

300

Code inside this block always executes, regardless of whether an exception occurs.

What is finally/finally block?
300

class A {
void show(){
System.out.println("A");
} }
class B extends A { void show(){ System.out.println("B"); }
}

A obj = new B();
obj.show();

What is B?

400

This OOP principle allows you to define a class with abstract methods that must be implemented by subclasses.

What is abstraction?

400

DOUBLE POINTS

Keywords like public, private, and protected are used in Java to define these.

What are Access Modifiers?

400

A GUI layout manager that arranges components in an equally divided structure is called…

What is GridLayout?

400

This is the general term for problems detected during program execution, like dividing by zero.

What is an Exception?

400

class Test {
private int x = 10;
}

System.out.println(new Test().x);


What is error?

500

When a subclass provides its own version of a method defined in its superclass, this is called…

What is Method Overriding?

500

A reusable block of code inside a class that performs a specific task is called a…

What is a Method?

500

This is code that responds to user actions such as clicks or typing.

What is an event listener?


500

DOUBLE POINTS

This Java keyword is used to manually throw an exception when a certain condition occurs.

What is throw?

500

try {

    System.out.print("Try ");

} finally {

    System.out.print("Finally");

}


What is try finally?

M
e
n
u