File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Long.MAX_VALUE and Integer.MAX_VALUE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Long.MAX_VALUE and Integer.MAX_VALUE" Watch "Long.MAX_VALUE and Integer.MAX_VALUE" New topic
Author

Long.MAX_VALUE and Integer.MAX_VALUE

Fethi Altunyuva
Greenhorn

Joined: Mar 27, 2002
Posts: 2
I could not understand why is output not same for Long and Integer classes.
Output is :
true
false
Can anybody explain thanks...
Fethi Altunyuva
Greenhorn

Joined: Mar 27, 2002
Posts: 2
I am very sorry, this topic is discussed in another topic...
I apologize....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Long.MAX_VALUE and Integer.MAX_VALUE