- The public static void main(String[] args) { ... } method is the entry point of a ____ program. (Answer: Java)
- Java is considered ____ -typed language, meaning data types are strictly defined. (Answer: Statically)
- An integer variable in Java can be declared using the keyword ____. (Answer: int)
- The ____ operator is used to concatenate strings in Java. (Answer: +)
- An if statement allows for conditional execution of code based on a/an ____ expression. (Answer: boolean)
- A loop that continues to iterate as long as a certain condition is true is called a/an ____ loop. (Answer: while)
- The ____ keyword is used to exit a loop prematurely. (Answer: break)
- An array in Java is a collection of items of the ____ data type. (Answer: same)
- The length of an array can be accessed using the ____ method. (Answer: length)
- Java provides garbage collection which automatically reclaims memory from unused ____ objects. (Answer: reference)
- A/an ____ method defines the behavior of an object. (Answer: instance)
- The ____ keyword is used to define a class in Java. (Answer: class)
- Inheritance allows a class to inherit properties and methods from another class called the ____ class. (Answer: parent)
- Polymorphism allows for objects of different classes to be treated in a ____ way. (Answer: uniform)
- An exception is an event that disrupts the normal flow of a program. It can be handled using a ____ block. (Answer: try-catch)
- The ____ keyword is used to throw an exception in Java. (Answer: throw)
- A/an ____ is a collection of elements that share a common interface. (Answer: interface)
- The ____ class provides methods for performing common string manipulations in Java. (Answer: String)
- The ____ method is used to read data from a file in Java. (Answer: Scanner)
- Java code needs to be compiled into ____ code before it can be executed. (Answer: bytecode)
- Practice ! Practice! Practice ....is all you can do ...Crack your interviews with my Lessons and let me know in comments how it helped you .. :0 So I can make more Lessons ....Best!