• +91 9723535972
  • info@interviewmaterial.com

DotNet Interview Questions and Answers

Question - What is Boxing and unboxing? Does it occure automaatically or u need to write code to box and unbox?

Answer -   Boxing – Process of converting a System.ValueType to Reference Type , Mostly base class System.Object type and allocating it memory on Heap .Reverse is unboxing , but can only be done with prior boxed variables. Boxing is always implicit but Unboxing needs to be explicitly done via casting , thus ensuring the value type contained inside .

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners