Core Java Interview questions


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

What the function of insert(int offset, String s) method of StringBuilder class in java?

This method is used to insert the specified string with this string at the specified position. The insert() method is overloaded like insert(int, char), insert(int, boolean), insert(int, int), insert(int, float), insert(int, double) etc.

 




Next 5 interview question(s)

1

What the function of append(String s) method of StringBuilder class in java?

2

What is the importance of StringBuilder(int length) constructor of StringBuilder class in java?

3

What is the importance of StringBuilder(String str) constructor of StringBuilder class in java?

4

What is the importance of StringBuilder() constructor of StringBuilder class in java?

5

What are the different type of constructors available in StringBuilder class in java?