Meherchilakalapudi.. writes for u….

Just another WordPress.com weblog

Archive for the ‘General Doubts(Clarified by meher)’ Category

General Doubts(Clarified by meher)

Posted by meherchilakalapudi on November 25, 2008

Doubts clarification

Are private class-level variables inherited?
Yes, but they are not accessible.  Although they are not visible or accessible via the class interface, they are inherited. 

- What’s the top .NET class that everything is derived from?
System.Object

- the term immutable mean?
The data value may not be changed.  Note: The
variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory

- the advantage of using System.Text.StringBuilder over System.String?
StringBuilder is more efficient in cases where there is a large amount of string manipulation.  Strings are immutable, so each time a string is changed, a new instance in memory is created.

- Can you store multiple data types in System.Array?
No

- What’s the implicit name of the parameter that gets passed into the set method/property of a class?
value.  The data type of the value parameter is defined by whatever data type the property is declared as. 

- What is the role of the DataReader class in ADO.NET connections?
It returns a read-only, forward-only rowset from the data source.  A DataReader provides fast access when a forward-only sequential read is needed

What is a satellite assembly?
When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies

Posted in General Doubts(Clarified by meher) | Leave a Comment »