100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Revature Interview Test Study Questions and Answers 100% Verified Graded A $16.99   Add to cart

Exam (elaborations)

Revature Interview Test Study Questions and Answers 100% Verified Graded A

 9 views  0 purchase
  • Course
  • Revature Interview
  • Institution
  • Revature Interview

Object - An instance of a class Class - Blueprint/prototype from which objects are created Inheritance - subclasses can inherit states/behaviors of superclasses interface - contract between class and outside world; when a class implements an interface, it promises to provide the behavior p...

[Show more]

Preview 4 out of 59  pages

  • July 24, 2024
  • 59
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
  • Revature Interview
  • Revature Interview
avatar-seller
PossibleA
[Document title] [Document subtitle] MUGWE [Date] [Course title] Revature Interview Test Study Questions and Answers 100% Verified 2024 -2025 Graded A Object - An instance of a class Class - Blueprint/prototype from which objects are created Inheritance - subclasses can inherit states/behaviors of superclasses interface - contract between class and outside world; when a class implements an interface, it promises to provide the behavior published by that interface package - a namespace for organizing classes & interfaces in a logical manner; makes large software projects easier to manage Encapsulation - Hiding the internal state of an object and requiring all interaction to be performed through an object's methods (accessors and mutators). Example: In a Bicycle class, method changeGear() could be implemented so as to only accept values between 1 and 6 Benefits of Objects - Modularity Information -Hiding Code re -use Pluggability and debugging ease Modularity - source code for an object can be written/maintained independently of source code for other objects. objects can be easily passed around the system once they've been created. Information -Hiding - By interacting only with object's methods, details of internal implementation stay secret from outside world. Code re -use - Complex objects only need to be coded once; you can use classes that have already been created by others. Pluggability/Debugging Ease - If an object is causing problems, you can easily remove it and put something else in its place. Example: replace a bolt that is broken, not the whole machine. How to use the changeGear() method on a Bicycle bike1? - bike1.changeGear(); How many superclasses can a subclass have? - ONLY ONE How many subclasses can inherit from the same superclass? - Infinitely many What is the main benefit of using inheritance? - The subclass contains all of the methods/fields of the superclass, but the subclass' code focuses on the unique aspects, making code simpler and easier to read. Why must the superclass' code be carefully documented? - Because that code is not physically in the subclass. Interface - the methods that a class is required to contain; empty methods that are related Should the methods in an interface be public or private? - MUST be public Packages - organizes a set of related classes/interfaces; like a folder on your computer class library - a set of packages API - Application Programming Language: Java's library of classes that you can use in your own applications. What do the Java API's packages represent? Give examples. - tasks for general purpose programming: String, File, Socket, some for developing GUIs. What is a benefit of using packages? - It allows developers to focus on the design of an application and NOT the technical stuff that makes it work. Real-world objects contain BLANK and BLANK. - State, behavior A software object's state is stored in BLANK - fields A software object's behavior is exposed through BLANK - methods (functions) Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data BLANK - Encapsulation A blueprint for a software object is called a BLANK - class Common behavior can be defined in a BLANK and inherited into a BLANK using the BLANK keyword - superclass, subclass, extends A collection of methods with no implementation is called an BLANK - interface A namespace that organizes classes and interfaces by functionality is called a BLANK - package The term API stands for BLANK - Application Programming Interface Major Principles of Object -Oriented Programming - Encapsulation Abstraction Inheritance Polymorphism Accessor - method used to ask an object about itself Should an accessor be public or private? - must be public An accessor is any public method that gives information about the BLANK of an object. - state Mutator - public methods used to modify the state of an object while hiding the implementation of the method Benefits of Encapsulation - 1. You can make changes to a class without breaking other code using that class. 2. You can handle situations where the class is being used improperly in such a way that the code doesn't fail. Abstraction - development of classes/objects/types in terms of

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 PossibleA. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $16.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

72042 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$16.99
  • (0)
  Add to cart