Senior .Net Developer Question:
Download Job Interview Questions and Answers PDF
Please explain what do the terms “boxing” and “unboxing” mean?
Answer:
This question can reveal how much candidates know about data types and OOP principles. The idea is relatively simple: Boxing is a process that converts a value type to an object type — by “boxing” the variable inside a dedicated object or interface. Unboxing extracts this value and stores it in a value type. Boxing was essential in some old Collection types such as ArrayList, and can still be used for accurate conversion of types — for example, from a double to an int.
Download Senior .Net Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain me what is .NET web service? | Explain me what is encapsulation? |