system specific limit

A

asit

Does java provide any specific library to know the limit of different
data types like limits.h in C ???
 
A

asit

None is needed. Unlike C, the primitive datatypes in Java have
very specific meaning that do not change with the CPU you
happen to be using. See the Java Language Specification,
or any decent textbook.

-Wayne

So answer to my question is a Strict No
 
A

Andreas Leitgeb

None is needed. Unlike C, the primitive datatypes in Java have
very specific meaning that do not change with the CPU you
happen to be using. See the Java Language Specification,
or any decent textbook.

Nevertheless, the limits of each primitive type can still be
obtained: each primitive has it's wrapper, like "Integer"
for "int", and these wrappers have static fields for the
maximum and minimum values of their corresponding primitives.
(MAX_VALUE and MIN_VALUE)
There are also some more such static fields with that kind
of information, e.g. "SIZE" and several more for float/double.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top