What is boxing?
Answers were Sorted based on User's Feedback
Answer / praveena
Boxing is an implicit conversion of a value type to the
type object
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / asha
BOXING IS DEFINED AS CONVERTING VALUE TYPES TO REFERENCES
TYPES .
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / swap
Boxing is the process of explicitly converting a value type
into a corresponding reference type. Basically, this
involves creating a new object on the heap and placing the
value there. Here is a basic example in C#:
int example = 35;
object i Example = example;
The new reference type includes the value 35.
| Is This Answer Correct ? | 1 Yes | 0 No |
what will do to avoid prior case?
Please explain what garbage collection is and how it works. Provide a code example of how you can enforce garbage collection in .net?
What is STA in .NET?
Explain constructor.
i have an array of 10 objects whose values are from 1-10 randomly inserted. i have deleted one array object. tell me what is that value? write the logic of it.
2 Answers Deloitte, Srp Khanij,
When would you use .NET Remoting and when Web services?
What is a metadata in .net?
With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?
Can we have same method with same name and signature using partial classes
What's the use of system.diagnostics.process class in .net?
Difference between abstract class and interface in .net?
What is a resource? Provide an example from your recent project.