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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top