File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt abt Boxing

 
Gowher Naik
Ranch Hand
Posts: 643
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

in above code there are two cases of boxing
in case 1:
Integer is converted to int at line 7 due to which if
returns true.So there is no doubt.
But in case 2:
if loop is making comparsion between int and Long(object)
at line 13 why if loop returns true.
i have a doubt in case 2.

please help
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic