Interviewer And Interviewee Guide

Senior .Net Developer Interview Question:

Please explain what do the terms “boxing” and “unboxing” mean?

Submitted by: Muhammad
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.
Submitted by: Muhammad

Read Online Senior .Net Developer Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.