|
-
Sep 4th, 2001, 02:09 PM
#1
Thread Starter
Randalf the Red
About Wrapper Classes ...
I am really disappointed over this thing.
If everything in Java is classes, why have separate wrapper classes for the built-in data types? Why not embed the functionality in the int, float etc.?
The only possible reason I can think up of is that these intrinsic data types are really not implemented as classes, and so when they need to be used as objects, the wrapper classes are used.
Is there any other explanation? I have learnt only one use for the wrapper classes so far, and that is to change the type of a value from an intrinsic data type to an object.
.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|