Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 1 fuera de 2 páginas
Examen

CMSC 131 FINAL EXAM QUESTIONS WITH VERIFIED ANSWERS

Document preview thumbnail
Vista previa 1 fuera de 2 páginas

CMSC 131 FINAL EXAM QUESTIONS WITH VERIFIED ANSWERS

Vista previa del contenido

CMSC 131 FINAL EXAM QUESTIONS WITH VERIFIED
ANSWERS


What is the Java Virtual Machine? - Answers - A program that simulates a real CPU
running compiled Java code.

What is byte code? - Answers - The Java compiler translates Java source code into
byte code, which is an intermediate language. The Java Virtual Machine executes the
byte code instructions.

How can you generate bytecode for a program called Test.java? - Answers -

What is the difference between a syntax error and a run time error? - Answers - Syntax
errors are related to the structure of the code and are detected before the program is
run, while runtime errors occur during the execution of the program

Can every class in Java have a main method? - Answers - No

What is the default value for a local variable? - Answers - None

What is the default value for a local variable? - Answers - The negative answer (int (and
the like)= 0, boolean = false, Object = null)

How do the String and StringBuffer classes differ? - Answers - You use the String class
when you are working with strings that cannot change while StringBuffer is used when
you want to manipulate the contents of the string on the fly.

What is the difference between method overloading and method overriding? - Answers -
Method overloading is used to increase the readability of the program. Method
overriding is used to provide the specific implementation of the method that is already
provided by its super class.

What is the difference between final int x and final static int x? - Answers - Final int
belongs to each individual int object while final static int is class wide.

What is the difference between a shallow copy and a deep copy? - Answers - In
Shallow copy, a copy of the original object is stored and only the reference address is
finally copied. In Deep copy, the copy of the original object and the copy are both stored

Which two methods of the Object class do we often override? - Answers - equals()
toString()

Información del documento

Subido en
10 de julio de 2026
Número de páginas
2
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$9.99

¿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.
GEEKA
3.8
(361)
Vendido
2137
Seguidores
1449
Artículos
58516
Última venta
2 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