.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> C# >> Post New Question Subscribe to Interview Questions

What does the term immutable mean?

Posted By :Narayanan     Posted Date :October 06, 2011    Points :40   Category :C# 
Data value may not be changed

You can also find related Interview Question to What does the term immutable mean?  below: 

What does the term immutable mean?

  
In object-oriented and functional programming, an immutable object is an object whose state cannot be modified after it is created.
The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory. Ex: String.
Making an object immutable is usually inappropriate if the object contains a large amount of changeable data.
So, For this reason .NET has the System.Text.StringBuilder class which is Mutable and appropriate for large amount of changeable data. (More...)

what is the meaning of immutable?

  
immutable means we can not change the contents at run time,
example of immutable is String (More...)

Explain how to make a class immutable.

  
In order to make a class immutable, the changing state of the class object must be restricted. This means restricting an assignment to a variable. This can be achieved by using 'final' access modifier. Make all methods in the class also 'final'. Even a better approach is to make the class itself as 'final' class. So that it can not be subclass-ed, and no overriding occurs. (More...)

Why string are called Immutable data Type ?

  
The memory representation of string is an Array of Characters, So on re-assigning the new array of Char is formed & the start address is changed . Thus keeping the Old string in Memory for Garbage Collector to be disposed. (More...)

Why string are called Immutable data Type ?

  
The memory representation of string is an Array of Characters, So on re-assigning the new array of Char is formed & the start address is changed . Thus keeping the Old string in Memory for Garbage Collector to be disposed. (More...)

What are immutable objects?

  
Immutable objects are one whose state cannot be modified after it is created .Example string objects are immutable (More...)

Why string objects are made immutable?

  
For secutiry and memory efficiency
(More...)


Which term describes an XML file that defines an object, such as Customer, Order, or Contact, that can be used in a business application?

  
External content types define data that is stored in a supported external system, such as a SQL Server database or other relational database, a SharePoint site, a Web service, or a custom data connector. (More...)

What are Terms and Term Sets?

  
In SharePoint a term is a word or a phrase that can be associated with an item. A term set is a collection of
related terms. (More...)

What are Terms and Term Sets?

  
A term is a word or a phrase that can be associated with an item. A term set is a collection of related terms. (More...)

How do Terms And Term Sets relate to Managed Metadata?

  
Managed metadata is a way of referring to the fact that terms and term sets can be created and managed independently from the columns themselves. (More...)

Are there different types of Term Sets?

  
There are Local Term Sets and Global Term Sets, one created within the context of a site collection and the other created outside the context of a site collection, respectively. (More...)

How is Managed Metadata, and the related Term technology used?

  
Through the UI, the most common use is through the managed metadata list column which allows you to specify the term set to use. It also related to searching and enhancing the user search experience. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend