int i,string s, String s1 Which is valuetype which is
refrence type.
Answer Posted / ashish p
Int i => Value type ==>Stack allocation in memory
String S, S1 => Reference type==>heap allocation in memory
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
When is a class declared as a class abstract?
Explain the mechanism of VB.NET/C# achieve polymorphism?
Can you specify nested classes as partial classes?
What is difference between encapsulation and abstraction in c#?
Define xslt.
What is dll in vb.net?
What is a hash table in c#?
What is ilist c#?
What is difference between comparable and comparator?
What is a generic class?
How can we set class to be inherited, but prevent the method from being over-ridden?
What are the types of constructors?
What is a dbml?
Who is a accessibility modifier “protected internal†available to ?
If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?