开发者

Java wrapper classes. Casting

开发者 https://www.devze.com 2022-12-21 08:43 出处:网络
Is there a n开发者_开发问答ame for when you convert a primitive to an object using wrapper classes?

Is there a n开发者_开发问答ame for when you convert a primitive to an object using wrapper classes? Im assuming this is also called casting correct?


This is called autoboxing. E.g.

Integer i = 5;   // i is an object but has a primitive value. 
0

精彩评论

暂无评论...
验证码 换一张
取 消