Which of the following statements are true?
Select 2 options
Correct Options are : A D
For A.
Actually, String class itself is final and so all of its methods are implicitly final.
For B.
Both String and StringBuilder are final classes. So is StringBuffer.
For C.
StringBuilder extends Object
For D.
String, StringBuilder, and StringBuffer - all are final classes.
The wrapper classes (java.lang.Boolean, java.lang.Integer, java.lang.Long, java.lang.Short etc.) are final and so they cannot be extended.
java.lang.Number, however, is not final. Integer, Long, Double etc. extend Number.
java.lang.System is final as well.