java - Are autoboxing and unboxing operator overloading -


are autoboxing , unboxing fancy terms operator overloading? happens when integer = 10;?

no, it's not operator overloading. java doesn't provide mechanism operator overloading.

integer = 10; 

is saying:

integer = integer.valueof(10); 

which isn't overloading = @ all.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -