GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Microsoft  >  Microsoft.NET

 Print  |  
Question:  What is meant by Mutable and Immutable classes?



April 04, 2007 17:12:01 #2
 Sanjiv Sharma   Member Since: Visitor    Total Comments: N/A 

RE: What is meant by Mutable and Immutable classes?
 

To put light on this:-
When u change the value of Mutable objects the new memory is created and new
value is stored in new memory.
But in immutable the value is changed in same memory, this makes immutable objects to increase the performance.

so in case if the string is frequently changed in the code at run time, it is advisable to use immutable objectes.

     

 

Back To Question