Which are true among below cases?

Options
- String class is immutable, StringBuffer and StringBuilder are mutable
- StringBuffer Class is synchronized and StringBuilder is not synchronized
- If programmer want to use several threads then he have to use StringBuffer
- All the above


CORRECT ANSWER : All the above

Discussion Board
string builder is synchronized

option b is incorrect as string buffer and string builder both are synchronized.

anukirti 08-30-2020 07:06 AM

java

ys

M.IFTEKHAR 11-22-2019 08:56 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement