0% found this document useful (0 votes)
30 views

Base Libraries: Lang and Util Packages

The Base Libraries provide fundamental functionality for the Java platform including wrapper classes for primitive types, math functionality, monitoring and management support, package version identification, reference objects, reflection, collections framework, concurrency utilities, Java archive files, logging, and preferences.

Uploaded by

Garlapati Sri
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Base Libraries: Lang and Util Packages

The Base Libraries provide fundamental functionality for the Java platform including wrapper classes for primitive types, math functionality, monitoring and management support, package version identification, reference objects, reflection, collections framework, concurrency utilities, Java archive files, logging, and preferences.

Uploaded by

Garlapati Sri
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Base Libraries

Classes and interfaces that provide basic features and fundamental functionality for the Java platform.

Lang and Util Packages


Provides the fundamental Object and Class classes, wrapper classes for primitive types, a basic math class, and more. See the Lang and Util documentation for more information. Math Math functionality includes floating point libraries and arbitrary-precision math. For more information, see the Math documentation. Monitoring and Management Comprehensive monitoring and management support for Java platform including Monitoring and Management API for Java virtual machine, Monitoring and Management API for the Logging Facility, jconsole and other monitoring utilities, out-of-the-box monitoring and management, Java Management Extensions (JMX), and Sun's Platform Extension. See the Monitoring and Management documentation for more information. Package Version Identification The package versioning feature enables package-level version control so that applications and applets can identify at runtime the version of a specific Java Runtime Environment, VM, and class package. For more information, see the Package Version Identification documentation. Reference Objects Reference objects support a limited degree of interaction with the garbage collector. A program may use a reference object to maintain a reference to some other object in such a way that the latter object may still be reclaimed by the collector. A program may also arrange to be notified some time after the collector has determined that the reachability of a given object has changed. Reference objects are therefore useful for building simple caches as well as caches that are flushed when memory runs low, for implementing mappings that do not prevent their keys (or values) from being reclaimed, and for scheduling pre-mortem cleanup actions in a more flexible way than is possible with the Java finalization mechanism. For more information, see the Reference Objects documentation. Reflection Reflection enables Java code to discover information about the fields, methods and constructors of loaded classes, and to use reflected fields, methods, and constructors to operate on their underlying counterparts on objects, within security restrictions. The API accommodates

applications that need access to either the public members of a target object (based on its runtime class) or the members declared by a given class. Programs can suppress default reflective access control. For more information, see the Reflection documentation. Collections Framework A collection is an object that represents a group of objects. The collections framework is a unified architecture for representing collections, allowing them to be manipulated independently of the details of their representation. It reduces programming effort while increasing performance. It allows for interoperability among unrelated APIs, reduces effort in designing and learning new APIs, and fosters software reuse. For more information, see the Collections Framework documentation. Concurrency Utilities The Concurrency Utilities packages provide a powerful, extensible framework of highperformance threading utilities such as thread pools and blocking queues. This package frees the programmer from the need to craft these utilities by hand, in much the same manner the Collections Framework did for data structures. Additionally, these packages provide low-level primitives for advanced concurrent programming. For more information, See the Concurrency Utilities documentation. Java Archive (JAR) Files JAR (Java Archive) is a platform-independent file format that aggregates many files into one. Multiple Java applets and their requisite components (.class files, images and sounds) can be bundled in a JAR file and subsequently downloaded to a browser in a single HTTP transaction, greatly improving the download speed. The JAR format also supports compression, which reduces the file size, further improving the download time. In addition, the applet author can digitally sign individual entries in a JAR file to authenticate their origin. It is fully extensible. For more information, see the Java Archive documentation. Logging The Logging APIs facilitate software servicing and maintenance at customer sites by producing log reports suitable for analysis by end users, system administrators, field service engineers, and software development teams. The Logging APIs capture information such as security failures, configuration errors, performance bottlenecks, and/or bugs in the application or platform. For more information, see the Logging documentation. Preferences The Preferences API provides a way for applications to store and retrieve user and system preference and configuration data. The data is stored persistently in an implementationdependent backing store. There are two separate trees of preference nodes, one for user

preferences and one for system preferences. For more information, see the Preferences API documentation,

You might also like