This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The reason why I think they are immutable is because of the purpose of these classes. If what I had read was correct, the purpose of these wrapper classes is so that you can store primitive values in Vectors and such. Since they all take Objects, but not primitives, there needed to be a way to put the primitives in them. SO they made the Wrapper classes. I also think they are used for statci methods for converting primitive types around. I know I use them specifically for these two purposes. I always have to convert between pimitive and String and back and forth all the time. For EJB's I 100% recommend always using the Wrapper Classes to map to database fields, rather than primitives. It just makes things easier. Thanks Mark
hi, if you have done any bit of awt class you will notice that textcomponets take in dta in string format .the question is how will you convert them to primitive so as to perform calculations on them .in order to make them as primitive data type wrapper classes are used.that is one practical use i have found. thanks sanjay