.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 >> ASP.Net >> Post New Question Subscribe to Interview Questions

what is the meaning of immutable?

Posted By :nishithraj     Posted Date :December 01, 2009    Points :10   Category :ASP.Net 
immutable means we can not change the contents at run time,
example of immutable is String

You can also find related Interview Question to what is the meaning of immutable?  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...)

Meaning of 10BASE-T?

  
10 refer to 10 Mbps transmission speed, Base is for baseband signaling and T stands for twisted pair cable (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 is the meaning of OverRides and Overridable
keywords ?

  
Overridable is used in parent class for a method can be overridden. Overrides is used in the child class to imply that you are overriding a method (More...)

What is the meaning of daemon thread?

  
Daemon thread's run in background and stop automatically when nothing is running program. (More...)

What is the meaning of virtual keyword?

  
It means that the method and the properties can be overriden. (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...)

What does the term immutable mean?

  
Data value may not be changed (More...)

What is the meaning of Open Source Software?

  
PHP developed for less script, time saving, Free Open Source Software and runs on different platforms such as Windows, Linux, Unix, etc. PHP compatible with almost all servers used today such as Apache, IIS, etc. (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