What is boxing?

Answer Posted / sivaprasad

Boxing is nothing but converting value type to reference type
Example:int i =10;
object o = i; \\Boxing which can happen implicitly

int j = (int)o; \\Unboxing Converting Referrenvce Type
to value type.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an imagemap in asp.net?

554


Can the unique key be null?

570


How to bind all the binding controls in a page at once in ASP.NET?

532


How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?

2240


Is asp.net a programming language or framework?

554






How does viewstate work?

577


What is the difference between table and query?

548


Can we have multiple web config files for an asp.net application?

537


Why viewstate is used in asp.net?

509


Is data edited in the Repeater control?

590


What are early binding and late binding.

566


Explain code snippet to register exception filters from controller?

630


What are the best practices to follow to secure connection strings in an ASP.NET web application?

558


What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

535


What are web beacons used for?

546