GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing www.geeksforgeeks.org — Java.lang package in Java - GeeksforGeeks Java.lang package in JavaLast Updated : 24 Jun, 2026 The java.lang package is one of the most fundamental packages in Java. This package provides essential functionality such as object manipulation, string handling, mathematical operations, exception handling, threading, and system-level operations.
Why is the |
| Class | Description |
|---|---|
Object | Root superclass of all Java classes. |
String | Represents an immutable sequence of characters. |
| StringBuilder | Mutable sequence of characters for efficient string manipulation. |
| StringBuffer | Thread-safe mutable sequence of characters. |
System | Provides access to system resources, standard input/output, and environment variables. |
Math | Contains methods for performing mathematical operations. |
Thread | Represents a thread of execution in a Java program. |
Runnable | Interface used to define tasks executed by threads. |
Exception | Base class for exceptions that can be handled by applications. |
Error | Represents serious system-level errors that applications typically do not handle. |
Throwable | Superclass of both Exception and Error. |
Runtime | Provides access to the Java runtime environment. |
Process | Represents a process running in the operating system. |
Class | Represents metadata about classes and interfaces at runtime. |
Integer | Wrapper class for the primitive int type. |
Long | Wrapper class for the primitive long type. |
Double | Wrapper class for the primitive double type. |
Float | Wrapper class for the primitive float type. |
Character | Wrapper class for the primitive char type. |
Boolean | Wrapper class for the primitive boolean type. |
Byte | Wrapper class for the primitive byte type. |
Short | Wrapper class for the primitive short type. |
Void | Represents the void return type. |
Enum | Base class for all Java enumerations. |
Package | Contains information about Java packages. |
java.lang PackageObject class, the root of the Java class hierarchy. String, StringBuilder, and StringBuffer. Math class provides common mathematical operations. Thread and Runnable classes. Integer, Double, and Boolean. System and Runtime classes allow interaction with the JVM and operating system.