View Diksha  Basu 's Profile
What is immutable object in Java? Can you change values of a immutable object?
Hi All, Please provide the answers in descriptive manner.
Asked by Diksha Basu | May 18 2017 | Report this Report abuse
Replies (9)
View Tanya  Sharma 's Profile
Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this process
May 24 2017 | Report this Report abuse
View Nirupama  Pathak 's Profile
A Java object is considered immutable when its state cannot change after it is created. Use of immutable objects is widely accepted as a sound strategy for creating simple, reliable code. Immutable objects are particularly useful in concurrent applications. Since they cannot change state, they cannot be corrupted by thread interference or observed in an inconsistent state. java.lang.String and java.lang.Integer classes are the Examples of immutable objects from the Java Development Kit. Immutable objects simplify your program, since they :

are simple to use test and construct.
are automatically thread-safe.
do not require a copy constructor.
do not require an implementation of clone.
allow hashCode to use lazy initialization, and to cache its return value.
do not need to be copied defensively when used as a field.
are good Map keys and Set elements (these objects must not change state while stored in the collection).
have their class invariant established once upon construction, and it never needs to be checked again.
always have "failure atomicity" (a term used by Joshua Bloch) : if an immutable object throws an exception, it's never left in an undesirable or indeterminate state.
May 23 2017 | Report this Report abuse
View Roshan  shah 's Profile
In java unused components are cleares by Garbage collector.
Whenever cpu gets the free time then it calls the 'gc()' method to do this task.
We can do it manually by calling gc() method explicitly.
May 23 2017 | Report this Report abuse
View Shatish  Rao 's Profile
In java unused components are cleares by Garbage collector.
Whenever cpu gets the free time then it calls the 'gc()' method to do this task.
We can do it manually by calling gc() method explicitly.
May 23 2017 | Report this Report abuse
View Tanya  Sharma 's Profile
I have shared few thoughts on creating Immutable classes at my blog http://javarevisited.blogspot.sg/2013/03/how-to-create-immutable-class-object-java-example-tutorial.html, you may find useful. Thanks
May 23 2017 | Report this Report abuse
View Roshan  shah 's Profile
I have shared few thoughts on creating Immutable classes at my blog http://javarevisited.blogspot.sg/2013/03/how-to-create-immutable-class-object-java-example-tutorial.html, you may find useful. Thanks
May 22 2017 | Report this Report abuse
View Shuchita   Shukla '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
View Shuchita   Shukla '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
View Nirupama  Pathak 's Profile
What is garbage collection? What is the process that is responsible for doing that in java?
May 22 2017 | Report this Report abuse