Classes
Methods
Objects
100

In Java, this class contains the main method and is in charge of running other classes.

Driver Class

100

What is the return type of the following method: public static int myMethod(int count, double value).

Int

100

In Java, this keyword is used to create an instance of a class, also known as an object.

New

200

In java, this concept is when you protect sensitive fields from being modified by outside classes. They can only be modified through public setter and getter methods from within the class.

Encapsulation

200

In java, this special type of method instantiates a new class. It is called once during object creation.

Constructor

200

This is the term used to describe the process of creating an object from a class

instanciating

300

The words public and private are ____ _____.              

Access modifiers

300


In the following method declaration, how many formal parameters are there?public static double squareRoot(double value) {  return 2.3;}.

1

300

This type of method, defined within a class, can be called without creating an instance of the class.

Static Method

400

Modifiers that don't control access level are _____ _____.

Non-access modifiers

400

The restrictions on what methods, variables, and keywords a static method cannot access within the class.

this, super, non-static methods and variables

400

In Java, this keyword is used to refer to the current instance of a class within its own methods and constructors.

This

500

Once a class has been declared, we can create objects that belong to the class. We say that these objects are ______ of the class.  

Instances

500

When are the static initialization blocks stored in the memory?

During class loading

500

The statement to initiate an int object.

Integer x = new Integer(1);

M
e
n
u