Question: Which of the following statements are true? Select the two correct answers. (a) String objects are immutable. (b) Subclasses of the String class can be

Which of the following statements are true?

Select the two correct answers.

(a) String objects are immutable.

(b) Subclasses of the String class can be mutable.

(c) All wrapper classes are declared as final.

(d) All objects have a public method named clone.

(e) The expression ((new char[] {'o', 'k'}) instanceof String) is always true.

Step by Step Solution

3.40 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a and c The String class and all wrapper classes are declared as fi... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!