Difference between String & StringBuffer

Answer Posted / bubun

string is slower in case of concatenation but stringBuffer
is faster than string.

Is This Answer Correct ?    23 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bool mean?

566


Can we use both this () and super () in a constructor?

545


What is json parser in java?

612


Are arrays classes in java?

530


What is difference between path and classpath?

556






How can you share data between two thread in Java?

522


Are global variables initialized to zero?

507


State the merge-sort principle and its time complexity.

570


What is the difference between import java.util.date and java .util?

565


What is increment in java?

520


Compare Mutex and Semaphore in java.

555


What is the exact difference in between unicast and multicast object? Where we will use?

558


What is array and arraylist in java?

525


What class of exceptions are generated by the java run-time system?

625


What are streams?

629