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.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller cracker. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $14.99. You're not tied to anything after your purchase.