What is boxing and unboxing?

Answer Posted / aejaz ahmad

Boxing is onverting a vlue type to refrence type (object
type)
Unboxing is converting reffrence type to value type as a
another value type

int i=0;
object o=i; //this is boxing
int i2=(int)o;//this is unboxing
long l=(long)i; //this is casting.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to apply themes to an asp.net application? If yes, then how?

583


How may clustered index we can create in table?

569


What is the function of the ViewState property?

649


What is Cookies Less Session?

616


Can master pages be nested?

520






What is the flow of processing of the request? : asp.net mvc

512


What is OSI layer? Explain different layers.

609


Explain the disadvantages of viewstate?

578


How to use a Master Database in Asp.net?

572


What is the file extension of web service?

558


How you will handle session when deploying application in more than a server?

598


Define static function?

572


How can we implement a identity (sql server) call in an asp.net page?

562


What are the Types of object in asp

642


What describes a query?

529