What is boxing and unboxing ?
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;
unboxing : copy data from heap memory to stack called
unboxing
object obj = (object) y; // Explicit Boxing
Rahul Tripathi
raultripathi@myway.com
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
What are client activated objects and server activated objects?
Define common type system?
How do cookies work?
Describe the differences between the lifecycles of Windows services and Standard EXE?
Web API uses which library for JSON serialization?
When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
Define authentication and authorization.
Explain the components of web form in asp.net
What does asp.net stand for?
How do you sign out from forms authentication?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
How do you secure your configuration files to be accessed remotely by unauthorized users?
What is asp.net mvc? : asp.net mvc
6. Tell us about a time when you failed to meet a deadline. What were the repercussions?
What is connection pooling and how to enable and disable connection pooling?