What is boxing and how it is done internally?
Answer Posted / surya
Boxing is an implicit conversion of a value type to the
type object
int i = 123; // A value type
Object box = i // Boxing
CASTING: casting is the process of converting a variable
from one type to another (from a string to an integer)
Unboxing is an explicit conversion from the type object to
a value type
int i = 123; // A value type
object box = i; // Boxing
int j = (int) box; // Unboxing
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
How to use the FindControl() function to preselect an item in my dropdownlist?
What are the properties of datacontrol?
How many types of dialog boxes windows provides?
Is form action required?
How do you apply specific formatting to the data inside the cells?
What are controls in windows forms?
What is the synonym of form?
how barcode print on the win form
What is the use of form?
Explain the difference between listindex and tab index?
How save rerecord in the database?
What is the difference between pixels, points, and em’s when fonts are displayed?
What are windows based applications examples?
Which window allows viewing the resources of the servers, such as services, processes and the event log?
What is window form application?