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
Which property of the errorprovider control automatically sets to the form to which?
Which event occurs when a user drags an item in a treeview or listview control?
Name the property which of menu cannot be set at run time?
What is the full form of gac?
Explain the difference between listindex and tab index?
Is windows an application software?
What is the difference between a document and a form?
Explain how insert record in the database?
Explain the difference between listbox and combo box?
What is the difference between the add() and insert() methods of a listbox control?
Which property value of the helpnavigator property will display the index for a specified topic?
Name the method that has to be overridden to change the appearance of the control that is inherited from an existing control.
What is the use of play() playlooping() functions?
What are windows based applications examples?
What is form application?