• ¿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 1 fuera de 2 páginas
Examen

MODULE 8: STRINGS- COMPUTER SCIENCE. Trusted by students across multiple disciplines!

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

MODULE 8: STRINGS- COMPUTER SCIENCE. Trusted by students across multiple disciplines!

Vista previa del contenido

MODULE 8: STRINGS- COMPUTER SCIENCE.
Trusted by students across multiple disciplines!
What is a String literal? - Answer: A hard-coded literal string value.
E.g.
The "Brittany" in... String name = "Brittany"


What is a String object? - Answer: JVM is forced to create a new String reference, even
if "Brittany" is in the reference pool.


What is a String? - Answer: a sequence of characters enclosed in quotation marks


What will take more time to execute a String literal or a String object? - Answer: String
object will always take more time to execute than String literal because it will
create/build a new string every time it is executed.


Are string mutable or immutable? - Answer: immutable


What backs Strings? - Answer: A character array (char[ ])


Where are Strings stored in memory? - Answer: The String Pool within the heap


How do you get the length of a String? - Answer: Using the String's length method
.length()


.concat() - Answer: Joins two or more strings, and returns a copy of the joined strings


.contains() - Answer: This will check if a sequence of characters is in your String


.touppercase() - Answer: A String method that returns the String without any lower case
letters.


1
APPHIA - Crafted with Care and Precision for Academic Excellence.

Información del documento

Subido en
23 de diciembre de 2025
Número de páginas
2
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$8.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
Apphia
3.0
(2)
Vendido
7
Seguidores
0
Artículos
4542
Última venta
2 meses 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