What is boxing in Java?

Java

1 answer

Answer

1150721

2026-04-27 01:45

+ Follow

Boxing a value x is to put it in a class type rather than its primitive one.

Ex.

int x = 3;

Integer Ix = x; // boxing x

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.