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

Can you explain how ASP.NET application life cycle and page life cycle events fire?

558


How to register exception filter globally?

573


What is cache in asp net?

522


Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?

645


a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.

1432






Explain parts of assembly?

547


What is the use of the tag in the web.config file?

562


How can you handle exceptions in asp.net?

554


Differentiate between structure and class.

571


What are the security types in asp.net?

572


What is difference between web api and web services?

529


What are the disadvantages of asp.net?

586


How can you register a custom server control to a web page?

539


What is considered a service provider?

510


How can we pass info between 2 asp.net pages?

553