Differentiate UnBoxing and boxing
Write the main difference between UnBoxing and boxing.
Expert
The process is called as boxing when the value type is converted to the object type while, when the object type is converted to the value type, the process is called as unboxing.
The Boxing and unboxing facilitates value types to be treated as objects. Boxing the value type packages it inside the instance of an Object reference type. It allows a value type to be stored on a garbage collected heap. Unboxing extracts a value type from an object. This example shows an integer variable i is boxed and allocated to object obj.
Example:
int i = 123;
object obj = i; /* Thi line boxes i. */
/* The object obj can then be unboxed and assigned to integer variable i: */
i = (int)obj; // unboxing
Why XMLHttpRequest object is used in the AJAX?
Describe the term Cloud?
Specify the operating systems over which the .NET Framework runs upon?
What is data type and how many types of data types are there in .NET ?
Briefly describe the properties in C# and state the advantages which are attained by using them in programs?
Write down some of the features which are present in the VB 2005?
What is meant by the Runtime services?
Elucidate Role based security?
Describe the concept of Bookmarks in WF 4.0.
How can height of a combo box drop-down list can be adjusted?
18,76,764
1927119 Asked
3,689
Active Tutors
1435210
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!