Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Programmer Certification (OCPJP)
Integer. MAX_VALUE and Integer.Min_Value
Anonymous
Ranch Hand
Posts: 18944
posted 24 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
can any body tell me the usefulness of MAX_VALUE AND MIN_VALUE
Suresh
Ranch Hand
Posts: 76
posted 24 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi rakul,
Those are constants containing the minimum and maximum value an integer can hold.
MIN_VALUE = -2147483648 = -2^31
MAX_VALUE = 2147483647 = 2^31 - 1
kking
Ranch Hand
Posts: 30
posted 24 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
They could be used for exceptions or something to make sure that an number doesn't exceed its maximum range for its particular primitive data type.
Message for you sir! I think it is a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Math.abs()
Numeric range for given bit size
Global Constants - One from you
switch() construct
Long.MAX_VALUE and double conversion
More...