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
a and c The String class and all wrapper classes are declared as fi... View full answer
Get step-by-step solutions from verified subject matter experts
