Do you know what a string is? Do you think you can pass this string, string buffers, and its functions quiz? If you have an idea of how the string and the string buffer work and their respective functions, then this quiz will be easy for you to crack. So, try this quiz and get to test your knowledge today. Wishing you all the best for this test, and enjoy.
=
++
+=
==
Reverse() is available in String
The content of StringBuffer can be expanded beyond their initial buffer size
The standard java.lang.StringTokenizer class is a special type of Enumeration that represents segments of a string, which may be separated by one or more "delimiters"
StringBuffer is a final class
String objects are immutable
True
False
Error
None of these
NullCharacterException
NullParameterException
NullPointerException
NumberFormatException
Ergic th
Ergic Thu
Ergic Th
ErgicThu
5
2
3
4
7,10,7
8,12,8
7,11,7
8,11,8
11
10
14
12
Null
Positive
Negative
Zero
Append,trim,setCharAt,and replace
Append,insert,setCharAt,and reverse
Append,insert,getChars,and replace
Append,trim,getChars,and reverse
Consistent
Symmetric
Null
Reflexive
Transitive
[ First Program ]
[First Program]
[FirstProgram]
First Program
StringBuilder is synchronized, it offers faster performance than StringBuffer
StringBuilder is not synchronized, it offers faster performance than StringBuffer
StringBuilder is not synchronized, it offers slower performance than StringBuffer
StringBuilder is synchronized, it offers slower performance than StringBuffer
Multitasking
Multithreading
Exception handling
String comparision
True
False
Returns current number of capacity
The string buffer is allocated atmost ‘n’ places
The string buffer is allocated atleast ‘n’ places
The string buffer is allocated some ‘n+1’ places
True true true
True false false
True false true
False true true
Hi smi
Hi sm
Smi
Ith
A. Object state can be replaced
B. Object state can’t be replaced
C. Object state can’t be modified
D. Object state can be modified