|
Hi binoympappachen,
First let me know which version of Java you are using. Because in jdk1.4 you can;t do arithmetic operation over Integer objects. But from Java 5, because of the concepts of boxing and unboxing, Integer,Double Objects can also do arithemetic operations, as the JVM internally
1. converts the objects to primitive values
2. Does the arithmetic operation
3. Converts the result to an Object datatype.
__________________
Thanks & Regards, G.Rajasekhar
|