What is Boxing and Unboxing?

Answer Posted / kautilya

Boxing is to implicitly converting value type to refrence
type,

int x = 10;
double y = x;


Unboxing is to explicitly converting refrence type to value
type

double y = 10.234;
int x = (int)y;

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is page request in asp.net?

719


Where the cookie value is stored?

702


How can you use a custom controls in ASP.NET application?

715


What is the function of new view engine in asp.net? : asp.net mvc

734


What is boxing and unboxing in asp.net?

833


Explain the components of web form in asp.net

751


What is application Object?

775


Explain about solution explorer window?

794


Name the two properties are on every validation control?

730


Which is an advantage of application service providers?

669


What is postback pixel?

679


Are xaml file compiled or built on runtime?

729


What is cookieless session id explain in brief?

723


What is .net remoting?

810


What are triggers of an updatepanel?

718