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
What are windows applications?
What are the forms of graphics?
How many types of dialog boxes windows provides?
Suppose I am implementing one windows form. I am inserting some values into ms access. In that table 5 columns there. But I want to insert three columns only. When I am clicking another button then other two values also insert into that table?
Which property of the progressbar control specifies the amount to increment the current value of the control?
What is form and its types?
What are the properties of datacontrol?
What is a windows forms application?
Is windows an application software?
Name the property which is used to specify the source from where the crystal reports would be accessed.
How to get records from a database?
Explain how to get records from a database?
How will calculated the net amount in tax add like total net amount = LT+ST+CESS+amount 2500 = 10%+12.5%+5.15%+amount? kindly please explain what type of formula we apply in software? Tushar
What is form record?
Explain how to find the current record position in data control?