Chapter 24. java.lang

This chapter provides a quick reference for the interfaces, classes, and methods in java.lang. This is the core package in the Java 2 SDK, and it defines the basic pieces that all other classes depend on, whether they are part of the Java 2 SDK, or user-defined classes. This package has many classes and interfaces which are used frequently, such as String, Class, Thread, Exception, and System. The System class is the basic class for console output. To use it, type

System.out.println(some primitive or object);

The class Class is used to interrogate other classes and to help load classes dynamically into memory (for example, a JDBC driver). The String class is used to represent character strings. The System class provides ...

Get PURE Java™ 2 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.