View Single Post
  #3 (permalink)  
Old 12-13-2007, 12:45 PM
gulapala gulapala is offline
Member
 
Join Date: Dec 2007
Posts: 11
gulapala is on a distinguished road
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
Reply With Quote