开发者

Java wrapper classes. Casting

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜