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 are client activated objects?

0 Answers  


what is new debug tools in asp.net ?

1 Answers  


What is the difference between asp.net and mvc?

0 Answers  


14. What are your Future Plans for Swatz Oils GROUP U.K?

0 Answers   CSC, Swatz Oils, TCS,


What are the page life cycle events?

0 Answers  






What is difference between session and cookie?

0 Answers  


How do you do client-side validation in .net? How to disable validator control by client side javascript?

0 Answers  


What r Callbacks in ASP.NET?

1 Answers  


What is strong name and which tool is used for this ?

3 Answers   Patni,


Why session is more secure than cookies?

0 Answers  


What is FullTrust? Do GACed assemblies have FullTrust?

2 Answers  


What are the two properties that are common in every validation control?

4 Answers   Siebel,


Categories