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

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

0 Answers  


About the Usage of htmlencode and urlencode ?

2 Answers   Cognizant,


What is query string in asp.net?

0 Answers  


What?s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?

5 Answers   SLC Ltd,


What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?

1 Answers  






public key?

1 Answers   Microsoft,


Which protocol is used to call a web service?

0 Answers  


In a Repeater control how one can provide an alternating color scheme ?

0 Answers   Siebel,


What do you mean by query string?

0 Answers  


How to Convert a String into Float without using any built- in library of .NET String = "1235.45" needs to converted to a float

2 Answers   CA, Microsoft,


How do you define authentication in Web.Config?

2 Answers   Accenture, BirlaSoft, IBM,


What is difference between abstract class and an interface?

0 Answers  


Categories