View Khushi   Kumari 's Profile
Why String class is final or immutable?
It is very useful to have strings implemented as final or immutable objects. Below are some advantages of String Immutability in Java

Immutable objects are thread-safe. Two threads can both work on an immutable object at the same time without any possibility of conflict.
Security: the system can pass on sensitive bits of read-only information without worrying that it will be altered
You can share duplicates by pointing them to a single instance.
You can create substrings without copying. You just create a pointer into an existing base String guaranteed never to change. Immutability is the secret behind Java’s very fast substring implementation.
Immutable objects are much better suited to be Hashtable keys. If you change the value of an object that is used as a hash table key without removing it and re-adding it you lose the mapping.
Since String is immutable, inside each String is a char[] exactly the correct length. Unlike a StringBuilder there is no need for padding to allow for growth.
If String were not final, you could create a subclass and have two strings that look alike when "seen as Strings", but that are actually different.
Asked by Khushi Kumari | May 16 2017 | Report this Report abuse
Replies (3)
View Roshan  shah 's Profile
Good you have correctly briefed the answer.
May 23 2017 | Report this Report abuse
View Diksha  Basu '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
May 23 2017 | Report this Report abuse
View Tanya  Sharma '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
May 22 2017 | Report this Report abuse