WHAT IS BOXING? HOW WE CAN USE IT?

Answer Posted / rahultripathi

There is two type datatype available Value and reference
type . value are stored in stack and reference type used
in heap . when we copy data from stack memmory to heap it
call Boxing .


Int32 x = 10; object o = x ; // Implicit
boxing
Int32 y = 10;
object obj = (object) y; // Explicit Boxing


Rahul Tripathi
raultripathi@myway.com

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the different types of assemblies?

531


What is IPostBack? How to use it?

602


What is the procedure to create the environment for asp.net? : asp.net mvc

519


What is the difference between cookie and session?

504


How you can stop the validation of ASP.NET controls from client side?

532






What is application variable in asp.net?

470


What is web api vs wcf?

583


what is the difference between response.write() and response.output.write()?

704


Is asp.net still used?

499


What methods are fired during the page load? Init()

522


Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc

546


Why is it preferred to not use finalize for clean up?

565


Can asp.net work on an nt server?

560


What is a user session?

505


What is the difference between system.stringbuilder and system.string

266