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
Name the parent class which is used to create all Windows services in .net?
Write down a short note on the brief history of WPF?
What data type does the Range Validator control support?
Write the control which exposes LINQ features to the Web developers through ASP.NET data-source control architecture.
Describe about LINQ query expressions?
Explain the concept of strong names.
Explain different types of generations in a garbage collector?
State the naming conventions essential for XML elements tags?
Illustrate how to manage state in ASP.Net?
What do you mean by Cookie?
18,76,764
1938526 Asked
3,689
Active Tutors
1451305
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!