WHAT IS BOXING? HOW WE CAN USE IT?

Answers were Sorted based on User's Feedback



WHAT IS BOXING? HOW WE CAN USE IT?..

Answer / 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

WHAT IS BOXING? HOW WE CAN USE IT?..

Answer / murugavel

it is implicit convertion for value type to refference type

int x=10;
object y;
x=y;//boxing

Is This Answer Correct ?    2 Yes 1 No

WHAT IS BOXING? HOW WE CAN USE IT?..

Answer / saiish bhat

Boxing is implicit conversion of value type to type object.

ex:
int i = 123;
int j = i; // boxing

Is This Answer Correct ?    2 Yes 2 No

WHAT IS BOXING? HOW WE CAN USE IT?..

Answer / a.mustaq ahmed

Changing Value types i.e.,int,double etc in to reference
type i.e., object is called boxing

Is This Answer Correct ?    0 Yes 1 No

Post New Answer



More ASP.NET Interview Questions

What is session and application variable in asp net?

0 Answers  


Can master pages be nested?

0 Answers  


How many web.config files in each solution

10 Answers   General Mills,


What is the difference between runtime version and version?

0 Answers  


diffrance between stored procedure & function in sql server?

2 Answers  






What is loop in asp.net?

0 Answers  


What is the difference between cache and cookies?

0 Answers  


Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?

0 Answers   Accenture, Value Labs,


How Response.flush works in server.Execute

1 Answers  


How is application management and maintenance improved in asp.net 2.0?

0 Answers  


What are ASHX files?

0 Answers   HCL,


I have one .Net application and i have two databases which is in SQL server2000 and one more database in ORACLE? how can i access the database from different Databases?

3 Answers   eXensys,






Categories