Core Java Interview questions


Total available count: 646
Subject - Java Technologies
Subsubject - Core Java

Differentiate between StringBuffer and StringBuilder in java?

StringBuffer is synchronized i.e. thread safe where as StringBuilder is non-synchronized i.e. not thread safe. StringBuffer is less efficient than StringBuilder.

 




Next 5 interview question(s)

1

Differentiate between String and StringBuffer in java?

2

What is default capacity of StringBuilder() constructer of StringBuilder class?

3

What is the return type of substring(int beginIndex, int endIndex) method of StringBuilder class in java?

4

What is the return type of substring(int beginIndex) method of StringBuilder class in java?

5

What is the return type of length() method of StringBuilder class in java?