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 kind of data we can store in viewstate?

0 Answers  


Define dll hell?

0 Answers  


What is the default timeout for a cookie?

0 Answers  


Why do we use datasource in asp.net?

0 Answers  


Which class is used to send an email message from an ASP.NET Web page?

0 Answers   Sans Pareil IT Services,






How many Language support in ASP.NET?

11 Answers   TCS,


How Session outproc in Sqlserver stored?

0 Answers   CGI,


Mention few asp.net validators.

0 Answers  


Explain how can we inherit a static variable?

0 Answers  


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

1 Answers   Getit, Siebel, Visual Soft,


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,


What is difference in .net 1.1 and .net 2.0?

0 Answers  


Categories