What is autoboxing?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is autoboxing?
Rating:
Autoboxing is the automatic conversion of numeric objects to primitives. Prior to Java 5, it was necessary to wrap a primitive type to a Wrapper class before adding it to a collection, and to unwrap it back to the primitive when it came out of the collection. By the introduction of autoboxing, Java 5 has removed this drawback.
Rating:
Was this information helpful?
Other articles
- What is overloading?
- What is the Map interface?
- What is the toHexString() method of the Double class?
- What is the subSet() method of the NavigableSet interface?
- What are the different states of a thread?