Java Ch 14 Exercises

Ace your homework & exams now with Quizwiz!

False String objects are immutable and cannot be modified after they're created. StringBuilder objects can be modified after they're created.

A String can be modified after it's created. True False

False String objects are compared using operator == to determine whether they're the same object in memory.

When String objects are compared using operator ==, the result is true if the Strings contain the same value. True False

s1 += s2

Write a single statement that appends the string s2 to the string s1, using +=

s1.length()

Write a single statement that determines the length of the string in s1.

s1.equals(s2)

Write single statement that compares the string in s1 to the string in s2 for equality of contents.


Related study sets

Copy, paste, and other general keyboard shortcuts

View Set

Pediatric Neuromuscular/Muscular Dystrophy NCLEX

View Set

Macro Final (Assignments & Quizzes 1-9)

View Set

Excel Module 2 for Intro to Computers

View Set

ATI FLUID & ELECTROLYTE IMBALANCES

View Set

Computer Networks and the Internet

View Set