Computer Applications
Which of these is an incorrect statement?
- String objects are immutable, they cannot be changed.
- When you assign a new value to a String object, Java internally creates another String object.
- StringBuffer is a mutable class that can store sequence of characters.
- String objects are actually arrays of characters.
Related Questions
Which of these methods of class String is used to extract a single character from a String object?
- CHARAT( )
- chatat( )
- charAt( )
- ChatAt( )
Which of these constructors is used to create an empty String object?
- String( )
- String(void)
- String(0)
- None of the mentioned
What are String and StringBuffer classes of Java?
How are Strings different from StringBuffers ?