what is stringBuffer and StringBuilder?

Answer Posted / modi[achir communication]

All methods in StringBuffer class are Synchronized whereas
in StringBuilder class methods are not synchronized.
StringBuilder is faster than StringBuffer because of the
synchronized method in StringBuffer.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to show synchronization?

858


Difference between new operator and class.forname().newinstance()?

811


How task's priority is used in scheduling?

1980


how do you Handle Front End Application data against DB with example?

1709


When is the best time to validate input?

794






In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

824


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

800


What are the sequence of steps to write pub or sub model kind of application?

2200


What is ripple effect?

820


What are the services in RMI ?

2072


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

763


we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?

2108


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

2755


How to pass parameters in RMI?

1941


What is prototype?

805