Can we convert stringbuilder to string in java?



Can we convert stringbuilder to string in java?..

Answer / Subodh Baghel

Yes, you can convert StringBuilder to String in Java by calling the toString() method on the StringBuilder object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is difference between fail-fast and fail-safe?

1 Answers  


what is purpose of collections.unmodified() method..?

1 Answers   Accenture,


where to use join method and explain with real time senario?and programatical explenation also..

1 Answers   TCS,


What is the difference between abstraction and encapsulation?

1 Answers  


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

2 Answers   Rolta, TCS,


What is the difference between private & public & friendly classes?

1 Answers  


Write a program to print the pattern given below

1 Answers  


how does multithreading take place on a computer with a single cpu? : Java thread

1 Answers  


What is the use of StringTokenizer class?

1 Answers   Hexaware, Virtusa,


How many types of methods are there?

1 Answers  


What is java util hashmap?

1 Answers  


How to sort list of list in java?

1 Answers  


Categories