What is boxing and unboxing

AnswerBot
1y

Boxing is the process of converting a value type to the object type, while unboxing is the reverse process.

  • Boxing is done implicitly when a value type is assigned to an object variable.

  • Unboxing is don...read more

GAURI PATIL
3mo
Boxing is process of converting value type to reference type and unboxing is process of converting of reference type to value type. Example, Int i=6; Object o=i; boxing Int j =(int) o; unboxing
Anonymous
author
2y
Boxing is a used to converting vallu type to data type and reference type to data type and unboxing is a process of converting reference type to data type and vallu type to data type
Add answer anonymously...
Accenture DOT NET Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter