Programming - String Buffers
You Are Here :: Home > JAVA > String Buffers - General Questions
1. |
By which class strings can be modified?
|
A. |
StringBuffer |
B.
|
stringbuffer |
C.
|
stringclass
|
D.
|
none
|
|
Answer: Option A
Explanation:
class strings cane be modified using StringBuffer. |
|
2. |
Is there any difference between String and StringBuffer?
|
A. |
Yes |
B.
|
No |
C.
|
Cant say
|
D.
|
none
|
|
Answer: Option A
Explanation:
Yes,there is a lot of difference between string and string buffer. |
|
3. |
String class object is _____________ and StringBuffer class is ______________
|
A. |
Mutable,Mutable |
B.
|
Inmutable,Inmutable |
C.
|
Mutable,Inmutable
|
D.
|
Inmutable,Mutable
|
|
Answer: Option D
Explanation:
String class objects are inmutable and StringBuffer class are Mutable. |
|
4. |
Below this identity which are wrapper classes?
|
A. |
Character |
B.
|
Integer |
C.
|
All
|
D.
|
none
|
|
Answer: Option C
Explanation:
String,Integer are wrapper classes in java. |
|
5. |
Below this identity which are immutable classes?
|
A. |
BigInteger |
B.
|
BigDecimal |
C.
|
All
|
D.
|
none
|
|
Answer: Option C
Explanation:
Big Integer,Big Decimal are immutable classes. |
|
6. |
After creating StringBuffer object to which string can be pass by?
|
A. |
class |
B.
|
object |
C.
|
none
|
D.
|
both
|
|
Answer: Option B
Explanation:
After creating StringBuffer object object can be pass. |
|
next »