Wrapper class in Java
- 2nd Dec 2017
- 0
- 13429
- auto boxing in java with an example auto un-boxing in java with an example Why do we need wrapper class when we already have primitive types? wrapper classes in java
Let us understand about Wrapper Class We know that there are 8 primitive data types provided in java(like int,float ,boolean etc) Java has provided the dedicated class for each of these primitive types and these classes are called as Wrapper class in Java. They are called wrapper class as they wrap the primitive into an […]