Aspects


vs


Home Page
About Us

Autoboxing

Boxing is the process of using an object to wrap a primitive value so that it can be used as a reference object; extracting a previously-boxed primitive is called unboxing

Casting

Casting is a process where an object type is explicitly converted into another type if the conversion is allowed



Others

Example

Is that casting from long to int plus sparsearray optimizations are going to be cheaper than autoboxing long to long for my hashmap operations

from question  

Is casting long to int cheaper than autoboxing long to Long?

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0