Integer at long type variable are not object.Support your
answer with example.And explain the technique to convert from
value type to reference type and vice-versa.
Answer / sujit
int x=10;
object obj=x;//called boxing
x=convert.ToInt32(obj);// called unboxing
Is This Answer Correct ? | 5 Yes | 0 No |
What is a sealed class?
Can multiple inheritance implemented in c# ?
What is ienumerable t in c#?
What do you mean by jagged array?
What is int parse in c#?
What is a partial class. Give an example?
What is .net console?
What are satellite assemblies?
int i = 1; int j = 1; System.Console.WriteLine(i == j); System.Console.WriteLine(i.ToString() == j.ToString()); System.Console.WriteLine((object)i == (object)j); Give the sample code above, what is the output to the console?
What is type system in c#?
Why do we need abstract class?
What is the different types of private assembly and shared assembly?