Concepts, Beginning Java, SQL UPDATED
Exam Questions and 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.
What is a Primitive Variable? - CORRECT ANSWER - Data types such as integers,
decimals, and alphanumeric characters.
EX: int x = 3;
What is a Reference Variable? - CORRECT ANSWER - Stores memory addresses where
objects are located, and dictate how those objects are accessed.
EX: String myString = new String("Hello World");
What is an Array? - CORRECT ANSWER - a collection of primitive values or object
references, stored in a single variable with an index. Has a fixed size and Data type