View Diksha  Basu 's Profile
What is difference between String, StringBuffer and StringBuilder? When to use them?
Below is the main difference between these three most commonly used classes.

String class objects are immutable whereas StringBuffer and StringBuilder objects are mutable.
StringBuffer is synchronized while StringBuilder is not synchronized.
Concatenation operator "+" is internal implemented using either StringBuffer or StringBuilder.

Criteria to choose among String, StringBuffer and StringBuilder

If the Object value is not going to change use String Class because a String object is immutable.
If the Object value can change and will only be accessed from a single thread, use a StringBuilder because StringBuilder is unsynchronized.
In case the Object value can change, and will be modified by multiple threads, use a StringBuffer because StringBuffer is synchronized.
Asked by Diksha Basu | Jun 14 2018 | Report this Report abuse
Replies (6)
View Shatish  Rao 's Profile
We provide Experience Certificate of Physically Present & Government Registered Company

Experience Certificates with 100 % Verification Guaranteed
from an MNC for any company or immigration

E-mail : expforjobs(at)gmail(dot)com

Email verification, Telephonic verification, Third party verification, Physical verification will be taken care.

Documentation Processed

-------------------------------------

1.Appointment letter

2.Promotion Letter

3.Salary slips

4.Experience certificate
A
5.Relieving letter

6.Resignation mail acceptance from HR

7.Corporate E-mail ID and access

8.Corporate ID card

9.Employee ID Number maintained in database

10.Form-16/TDS certificate of last Financial Year(Excluding Tax Authenticated by Chartered Accountant)

11.HR email id and Contact No references for verification

12.Employee reference for verification
A
13.Project Manager email id and Contact No references for verification

14.Job profile Description

15.Bank statement(Need to follow procedure)

15.Resume modification from Naukri and Monster Professionals and uploading the same for better Job opportunities


100% assured background verification irrespective of the company you might be join

Email verification, Telephonic verification, Third party verification, Physical verification will be taken care.

Microsoft, Oracle, SAP, Java, Outsourcing, Testing Services, SOA, IOS, Android,
Symbian Human Resources, Banking & capital markets, Capital projects, Infrastructure Communications,
Financial services, Business Intelligence, Business Consulting, Future IT CloudInnovation
Manufacturing, Sales, Production, Finance & Account, & Many More................

http://fakeexperiencecertificate.blogspot.in
Jun 22 2018 | Report this Report abuse
View Shatish  Rao 's Profile
We provide Experience Certificate of Physically Present & Government Registered Company

Experience Certificates with 100 % Verification Guaranteed
from an MNC for any company or immigration

E-mail : expforjobs(at)gmail(dot)com

Email verification, Telephonic verification, Third party verification, Physical verification will be taken care.

Documentation Processed

-------------------------------------

1.Appointment letter

2.Promotion Letter

3.Salary slips

4.Experience certificate
A
5.Relieving letter

6.Resignation mail acceptance from HR

7.Corporate E-mail ID and access

8.Corporate ID card

9.Employee ID Number maintained in database

10.Form-16/TDS certificate of last Financial Year(Excluding Tax Authenticated by Chartered Accountant)

11.HR email id and Contact No references for verification

12.Employee reference for verification
A
13.Project Manager email id and Contact No references for verification

14.Job profile Description

15.Bank statement(Need to follow procedure)

15.Resume modification from Naukri and Monster Professionals and uploading the same for better Job opportunities


100% assured background verification irrespective of the company you might be join

Email verification, Telephonic verification, Third party verification, Physical verification will be taken care.

Microsoft, Oracle, SAP, Java, Outsourcing, Testing Services, SOA, IOS, Android,
Symbian Human Resources, Banking & capital markets, Capital projects, Infrastructure Communications,
Financial services, Business Intelligence, Business Consulting, Future IT CloudInnovation
Manufacturing, Sales, Production, Finance & Account, & Many More................

http://fakeexperiencecertificate.blogspot.in
Jun 22 2018 | Report this Report abuse
View Roshan  shah 's Profile
StringBuffer is mutable means one can change the value of the object . The object created through StringBuffer is stored in the heap . StringBuffer has the same methods as the StringBuilder , but each method in StringBuffer is synchronized that is StringBuffer is thread safe.
To Know more visit the: -http://www.cetpainfotech.com/technology/java-training
Jun 22 2018 | Report this Report abuse
View Shatish  Rao 's Profile
StringBuffer is mutable means one can change the value of the object . The object created through StringBuffer is stored in the heap . StringBuffer has the same methods as the StringBuilder , but each method in StringBuffer is synchronized that is StringBuffer is thread safe.
To Know more visit the: -http://www.cetpainfotech.com/technology/java-training
Jun 22 2018 | Report this Report abuse
View Tanya  Sharma 's Profile
Well written and described in good words . I am having one question

How to create a immutable object in Java? Does all property of immutable object needs to be final?
Jun 21 2018 | Report this Report abuse
View Nirupama  Pathak 's Profile
To create a object immutable You need to make the class final and all its member final so that once objects gets crated no one can modify its state. You can achieve same functionality by making member as non final but private and not modifying them except in constructor. Also its NOT necessary to have all the properties final since you can achieve same functionality by making member as non final but private and not modifying them except in constructor.


hope i am clear
Jun 21 2018 | Report this Report abuse