What is the programming paradigm that uses objects and classes
What is Object-Oriented Programming?
What is the correct method signature for the Java program’s entry point
What is public static void main (String [] args )?
Which data type is used to store true/false values in Java
What is boolean ?
Which keyword is used to exit a loop prematurely
What is break?
Which operator is used to compare two values for equality
What is ==?
This OOP principle is about hiding internal details and showing only essential information.
What is Abstraction?
What symbol is used to add single-line comments in Java
What is //
What is the default value of an int variable in Java
What is 0?
Which loop will always execute at least once
What is do-while loop?
What is the result of 7 % 3 in Java
What is 1?
Which keyword in Java is used to inherit a class
What is extends?
Java source files are compiled into files with what extension
What is .class?
How many bytes are used by the float data type in Java
What is 4 bytes?
Which statement allows skipping the current iteration in a loop
What is continue?
What type of operator is && in Java
What is a logical AND operator?
This OOP feature allows the same method to perform different tasks based on the object
What is Polymorphism?
What keyword is used in Java to define a constant value
What is final?
What type is String in Java — primitive or reference
What is reference type?
Which loop type is best for reading array
What is for-each loop?
Which operator in Java is used for conditional assignment
What is the ternary operator ( ?: )?
Encapsulation is implemented in Java using what two features
What are classes and access modifiers?
What kind of arguments does the main method accept
What is an array of strings (String[] args)?
Which keyword ensures a variable's value cannot be changed once assigned
What is final?
In a switch statement, which keyword is used to exit the structure
What is break?
Which operator is used for bitwise AND in Java
What is &?