GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet
Go To First  |  Previous Question  |  Next Question 
 DotNet  |  Question 136 of 165    Print  
Mutable and Immutable classes
What is mean by mutable and immutable classes? Please give any examples.


  
Total Answers and Comments: 2 Last Update: June 13, 2007     Asked by: khaderhk 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 23, 2007 09:56:37   #1  
terrypearson Member Since: March 2007   Contribution: 1    

RE: Mutable and Immutable classes
Mutable classes have the ability to be changed after instantiation. Immutable classes can not be modified after instantiation.

A good example of this is the String class in Java. Once a string is created there are no functions available to modify the string. Instead programmers rely on the assignment operator to assign a new string to the variable.

 
Is this answer useful? Yes | No
June 13, 2007 06:59:33   #2  
Rambhupal Reddy        

RE: Mutable and Immutable classes
string is a immutable...stringbuilder is mutable..string builder can have namespace system.text....
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Many ...

It is a Framework in which Windows applications may be developed and run.The Microsoft .NET Framework is a platform for building, deploying, and running Web Services and applications. It provides a highly 
Latest Answer : .Net framework is a platform for building, deploying and running web services and other applications. It provides memory management and a rich set of classes.It facilitates integration of code written in several .net languages into one assembly. It provides ...

An assembly is the primary building block of a .NET Framework application. It is a collection of functionality that is built, versioned, and deployed as a single implementation unit (as one or more 
Latest Answer : the above said answer is good ...

Managed code is code that is written to target the services of the Common Language Runtime. In order to target these services, the code must provide a minimum level of information (metadata) to the 
Latest Answer : The code which is under the control of CLR is call managed code , and the code which is not under the control of CLR is called unmanaged code. ...

Metadata is information about a PE. In COM, metadata is communicated through non-standardized type libraries. In .NET, this data is contained in the header portion of a COFF-compliant PE and follows 
Latest Answer : In Simple words, Meta data is set of tables that describe  the types and its members  defined in the assembly and the types and its members referenced in the assembly. Manifest is another set of tables that describe the assembly attributes like ...
Tags : Metadata

An assembly manifest contains all the metadata needed to specify the assembly's version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve 
Latest Answer : whereas the manifest describes the assembly itself, providing the logical attributes shared by all the modules and all components in the assembly.The manifest contains the assembly name, version number, locale and an optional strong name that uniquely ...

It extends the benefits of metadata by allowing developers to inspect and use it at runtime. For example, dynamically determine all the classes contained in a given assembly and invoke their methods.Reflection 
Latest Answer : Reflection is the mechanism of discovering class information at run time or it is an technique for reading meta data at run time ...

Attributes are declarative tags in code that insert additional metadata into an assembly. There exist two types of attributes in the .NET Framework: Predefined attributes such as AssemblyVersion, 
Latest Answer : Attributes are part of metadata for a class.Attributes are used to specify assembly information like key file name, or for specifying security related information. You can create new attributes for your specific needs or ideas. ...

What is the difference between "using System.Data;" and directly adding the reference from "Add References Dialog Box"?
When u compile a program using command line, u add the references using /r switch. When you compile a program using Visual Studio, it adds those references to our assembly, which are added using "Add 

Now VB.NET is object-oriented language. The following are some of the differences:Data Type Changes The .NET platform provides Common Type System to all the supported languages. This means that all 
Latest Answer : The big one is that VB (we are talking VB through VB6) is entirely in the COM world not the .Net world of managed code. VB generates either threaded P-code or native EXE, processed by the VB runtime,  but does not have concept of Release vs Debug. ...


 Sponsored Links

 
Related Articles

ODP.NET - Fundamental ODP.NET Classes to Retrieve Data

ODP NET Fundamental ODP NET Classes to Retrieve Data To retrieve data from an Oracle database using ODP NET we need to work with a few of the ODP NET classes At this point we will discuss the most fundamental classes available in ODP NET for retrieving data mosgoogle The following is the list of fun
 

Microsoft AJAX Library - C# and JavaScript Classes

C and JavaScript Classes For the purpose of demonstrating a few more OOP related concepts we ll use another class Our new class is named Table and it has two public fields rows columns and one method getCellCount The getCellCount method should return the number of rows multiplied by the number of co
 

Microsoft AJAX Library - JavaScript Classes

JavaScript Classes Not only can JavaScript functions contain other functions but they can also be instantiated This makes JavaScript functions a good candidate for implementing the concept of a class from traditional object oriented programming This is very helpful feature indeed because JavaScript
 

C++ Storage Classes

C Storage Classes In this C tutorial you will learn about storage classes types of storage class variables Automatic External and Static explained with examples mosgoogle center Storage classes In the context of scope of variables in functions exists the important concept of storage class What is St
 

C++ Objects and Classes

C Objects and Classes An Overview about Objects and Classes In object oriented programming language C the data and functions procedures to manipulate the data are bundled together as a self contained unit called an object A class is an extended concept similar to that of structure in C programming l
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape