Revature Interview Study Guide: OOP Concepts,
Beginning Java, SQL Questions with correct answers
What Is an Object? Correct Answer-a software bundle of related state
and behavior. Often used to model the real-world _______ that you find
in everyday life.
What are Fields and Methods? Correct Answer-An object stores its state
in _______ and exposes its behavior through _______.
What Is a Class? Correct Answer-a blueprint or prototype from which
objects are created.
What Is Inheritance? Correct Answer-provides a powerful and natural
mechanism for organizing and structuring your software. allows classes
to inherit commonly used state and behavior from other classes
What Is an Interface? Correct Answer-contract between a class and the
outside world. When a class implements an ___________, it promises to
provide the behavior published by that interface. A group of related
methods with empty bodies
What is a Package? Correct Answer-a namespace for organizing classes
and interfaces in a logical manner. Makes large software projects easier
to manage. Think of them as files on your computer
, What is an API? Correct Answer-Application Programming Interface. A
package obtained from the huge class library offered by the Java
platform.
What is State and Behavior Correct Answer-Real-world objects contain
___ and ___.
What is Encapsulation Correct Answer-Hiding internal data from the
outside world, and accessing it only through publicly exposed methods
is known as data ___.
What is a Variable? Correct Answer-a structure for temporarily storing
data in your computer's memory.
What is an Instance Variable? Correct Answer-A variable declared after
the class declaration, but outside of any methods. These variable can
have different values for each separate instance of the class.
What is a Class Variable? Correct Answer-Whenever a variable has the
keyword static attached to it. It means that every object of that class will
share the same value for that variable.
What is a Local Variable? Correct Answer-When a variable is declared
inside of a method. They do not exist outside of the method they are
declared in.
Beginning Java, SQL Questions with correct answers
What Is an Object? Correct Answer-a software bundle of related state
and behavior. Often used to model the real-world _______ that you find
in everyday life.
What are Fields and Methods? Correct Answer-An object stores its state
in _______ and exposes its behavior through _______.
What Is a Class? Correct Answer-a blueprint or prototype from which
objects are created.
What Is Inheritance? Correct Answer-provides a powerful and natural
mechanism for organizing and structuring your software. allows classes
to inherit commonly used state and behavior from other classes
What Is an Interface? Correct Answer-contract between a class and the
outside world. When a class implements an ___________, it promises to
provide the behavior published by that interface. A group of related
methods with empty bodies
What is a Package? Correct Answer-a namespace for organizing classes
and interfaces in a logical manner. Makes large software projects easier
to manage. Think of them as files on your computer
, What is an API? Correct Answer-Application Programming Interface. A
package obtained from the huge class library offered by the Java
platform.
What is State and Behavior Correct Answer-Real-world objects contain
___ and ___.
What is Encapsulation Correct Answer-Hiding internal data from the
outside world, and accessing it only through publicly exposed methods
is known as data ___.
What is a Variable? Correct Answer-a structure for temporarily storing
data in your computer's memory.
What is an Instance Variable? Correct Answer-A variable declared after
the class declaration, but outside of any methods. These variable can
have different values for each separate instance of the class.
What is a Class Variable? Correct Answer-Whenever a variable has the
keyword static attached to it. It means that every object of that class will
share the same value for that variable.
What is a Local Variable? Correct Answer-When a variable is declared
inside of a method. They do not exist outside of the method they are
declared in.