• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 26 pages
Exam (elaborations)

Revature Interview Study Guide: OOP Concepts, Beginning Java, SQL (Questions & Answers) 2024!!

Document preview thumbnail
Preview 3 out of 26 pages

Revature Interview Study Guide: OOP Concepts, Beginning Java, SQL (Questions & Answers) 2024!!

Content preview

Name: Score:


61 Multiple choice questions

Definition 1 of 61
a software bundle of related state and behavior. Often used to model the real-world _______ that
you find in everyday life.

How to Create an Object.


The Color of an Object.

A Physical Object Found in Nature.

What Is an Object?

Term 2 of 61
What is an API?

Application Programming Interface. A package obtained from the huge class library
offered by the Java platform.

A type of computer virus that targets programming interfaces.

A method for creating animated pixel images.


An algorithm for solving mathematical equations.

,Term 3 of 61
What is a Class Variable?

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.


Hiding internal data from the outside world, and accessing it only through publicly exposed
methods is known as data ___.


provides additional information about an element. normally specified in the start tag.

Allows you to use the same method name and accept different parameters. For example,
you can use the add method to add two integers, or two doubles.

Term 4 of 61
Why would you use the number object over primitive data types?

1. Declaration: start by declaring the object type as well as the variable name

2. Instantiation: Use the NEW keyword to instantiate the new object


3. Initialize: Use a call to the objects constructor that will initialize the object

You can use the format method in the PrintStream Class. Use this if you want to format a
string containing numbers for output.

EX: System.out.format()


1. You can use it for an argument for a method that expects an object

2. To use Constants defined by the class

3. Use class methods for converting values to and from other primitive data types

1. Provide access modifiers
2. Provide return type (What kind of data will the method return)
3. Provide the method name
4. Provide parameter list in parentheses
5. Provided Exception list where applicable
6. Provide a method body

, Term 5 of 61
How do you convert Strings to Numbers?

Each of the Number subclasses provide a method called valueOf that will convert a string
to an object of that type.

Example: Intiger.valueOf()


Multiple methods:

Strings s = String.valueOf(x)

Preferred:

String s2 = Intiger.toString(x)


Makes things immutable in java. Examples: Variables cannot be changed once instantiated.
Methods cannot be overwritten. Classes cannot be extended.

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.

Term 6 of 61
What is the clone() method?

A method that deletes the object.

A method that renames the object.

Provided by the Object class, a method that creates a copy of the object.

A method that moves the object to a different location.

Document information

Uploaded on
October 13, 2024
Number of pages
26
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
amzingnurse
4.8
(1570)
Sold
1576
Followers
63
Items
3620
Last sold
3 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions