views:

83

answers:

1

Is there a name for when you convert a primitive to an object using wrapper classes? Im assuming this is also called casting correct?

+4  A: 

This is called autoboxing. E.g.

Integer i = 5;   // i is an object but has a primitive value. 
fastcodejava
you're right. i learned it before i just forgot the namethanks
Glad to be be help.
fastcodejava