Which of the following statements are incorrect?
A. String is a class.
B. Strings in java are mutable.
C. Every string is an object of class String.
D. Java defines a peer class of String, called StringBuffer, which allows string to be altered.
Answer:A
Which of the following statements are incorrect?
A. String is a class. B. Strings in java are mutable. C. Every string is an object of class String. D. Java defines a peer class of String, called StringBuffer, which allows string to be altered.
Explanation: Strings in Java are immutable that is they can not be modified.