hi,
As i know, The + operator is not defined for Integer objects, only for
String objects.But the following program giving the out put " final value 7".Could anyone tell me why?
class IntegerTest
{
public static void main(String[] args)
{
Integer A, B, C ;
A = new Integer( 3 ) ;
B = new Integer( 4 ) ;
C = A + B ;
System.out.println( "Final value " + C ) ;
}
}
thanks in advance,
reena