+ 2
What is the application of wrapper class?
4 Antworten
+ 3
As there is no actual answers yet, someone please correct me if I am wrong, but I believe a wrapper class provides extra functionality for example int is a primitive data type not an object but you can use the Integer wrapper class to 'wrap' an int into an Integer object and use the functionalities which come with it, another wrapper class is Double
+ 3
we can use classes instead of using primitive data types ..
using wrapper classes
For eg:
you can use Integer in place of int
Double in place of double and many more....
There are many benefits of using wrapper classes by using wrapper classes instead of using primitive data types can make your program 100 percent Object Oriented ..
0
for java rule
- 1
answer please