|
INTERVIEW QUESTIONS
MICROSOFT
DOTNET
DETAILS
Question: Is string a value type or a reference type?
Answer: String is Reference Type. Value type - bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short,strut, uint, ulong, ushort Value types are stored in the Stack Reference type - class, delegate, interface, object, string Reference types are stored in the Heap
|
|
|
Category |
DotNet Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8134 users |
Added on |
12/21/2010 |
Views |
68003 |
Rate it! |
|
|
Question:
Is string a value type or a reference type?
Answer:
String is Reference Type. Value type - bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short,strut, uint, ulong, ushort Value types are stored in the Stack Reference type - class, delegate, interface, object, string Reference types are stored in the Heap Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is boxing?
|
View Answer
|
|
How would one do a deep copy in .NET?
|
View Answer
|
|
Contrast the use of an abstract base class against an interface?
|
View Answer
|
|
What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?
|
View Answer
|
|
What is the difference between Debug.Write and Trace.Write? When should each be used?
|
View Answer
|
|
Why is catch(Exception) almost always a bad idea?
|
View Answer
|
|
What is FullTrust? Do GAC’ed assemblies have FullTrust?
|
View Answer
|
|
What are PDBs? Where must they be located for debugging to work?
|
View Answer
|
|
What is strong-typing versus weak-typing? Which is preferred? Why?
|
View Answer
|
|
What is the difference between thread and process?
|
View Answer
|
|
What is the difference between a.Equals(b) and a == b?
|
View Answer
|
|
How does the lifecycle of Windows services differ from Standard EXE?
|
View Answer
|
|
What is a Windows Service and how does its lifecycle differ from a “standard” EXE?
|
View Answer
|
|
What is CLR?
|
View Answer
|
|
Explain the differences between Server-side and Client-side code?
|
View Answer
|
|
What type of code (server or client) is found in a Code-Behind class?
|
View Answer
|
|
Should validation (did the user enter a real date) occur server-side or client-side? Why?
|
View Answer
|
|
What does the EnableViewState Means?
|
View Answer
|
|
What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over the other?
|
View Answer
|
|
Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All DotNet Interview Questions & Answers - Exam Mode /
Learning Mode
|