3.10. Java Standard Classes

In Overflow.java (Listing 3.7.1, above), we made use of a constant declared in the java.lang.Integer standard class. This class makes available a number of methods to work with integers, and it defines three constant variables, including MAX_VALUE (the maximum value for an integer) and MIN_VALUE (the minimum value for an integer). There are corresponding classes defined for long, float, double, boolean, and so forth in the java.lang package. These are all standard classes.

Everything (except primitive type variables) in Java is an object. Objects are defined in terms of the data they make available and the behavior that they are capable of. This is what you do when you write Java programs—you write classes that serve ...

Get Java™ for ColdFusion® Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.