• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 3 fuera de 26 páginas
Examen

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

Document preview thumbnail
Vista previa 3 fuera de 26 páginas

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

Vista previa del contenido

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.

Información del documento

Subido en
13 de octubre de 2024
Número de páginas
26
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$13.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
amzingnurse
4.8
(1570)
Vendido
1576
Seguidores
63
Artículos
3620
Última venta
3 días hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes