Java.lang package in Java Last Updated : 12 Jun, 2024 Suggest changes Share Like Article Like Report Java.lang package in JavaProvides classes that are fundamental to the design of the Java programming language. The most important classes are Object, which is the root of the class hierarchy, and Class, instances of which represent classes at run time. Following are the Important Classes in Java.lang package : Boolean: The Boolean class wraps a value of the primitive type boolean in an object.Byte: The Byte class wraps a value of primitive type byte in an object.Character – Set 1, Set 2: The Character class wraps a value of the primitive type char in an object.Character.Subset: Instances of this class represent particular subsets of the Unicode character set.Character.UnicodeBlock: A family of character subsets representing the character blocks in the Unicode specification.Class – Set 1, Set 2 : Instances of the class Class represent classes and interfaces in a running Java application.ClassLoader: A class loader is an object that is responsible for loading classes.ClassValue: Lazily associate a computed value with (potentially) every type.Compiler: The Compiler class is provided to support Java-to-native-code compilers and related services.Double: The Double class wraps a value of the primitive type double in an object.Enum: This is the common base class of all Java language enumeration types.Float: The Float class wraps a value of primitive type float in an object.InheritableThreadLocal: This class extends ThreadLocal to provide inheritance of values from parent thread to child thread: when a child thread is created, the child receives initial values for all inheritable thread-local variables for which the parent has values.Integer :The Integer class wraps a value of the primitive type int in an object.Long: The Long class wraps a value of the primitive type long in an object.Math – Set 1, Set 2: The class Math contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.Number: The abstract class Number is the superclass of classes BigDecimal, BigInteger, Byte, Double, Float, Integer, Long, and Short.Object: Class Object is the root of the class hierarchy.Package: Package objects contain version information about the implementation and specification of a Java package.Process: The ProcessBuilder.start() and Runtime.exec methods create a native process and return an instance of a subclass of Process that can be used to control the process and obtain information about it.ProcessBuilder: This class is used to create operating system processes.ProcessBuilder.Redirect: Represents a source of subprocess input or a destination of subprocess output.Runtime: Every Java application has a single instance of class Runtime that allows the application to interface with the environment in which the application is running.RuntimePermission: This class is for runtime permissions.SecurityManager: The security manager is a class that allows applications to implement a security policy.Short: The Short class wraps a value of primitive type short in an object.StackTraceElement: An element in a stack trace, as returned by Throwable.getStackTrace().StrictMath- Set1, Set2: The class StrictMath contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.String- Set1, Set2: The String class represents character strings.StringBuffer: A thread-safe, mutable sequence of characters.StringBuilder: A mutable sequence of characters.System: The System class contains several useful class fields and methods.Thread: A thread is a thread of execution in a program.ThreadGroup: A thread group represents a set of threads.ThreadLocal: This class provides thread-local variables.Throwable: The Throwable class is the superclass of all errors and exceptions in the Java language.Void: The Void class is an uninstantiable placeholder class to hold a reference to the Class object representing the Java keyword void.More articles: Flexible nature of java.lang.ObjectJava.lang.system arraycopy methodEquals() and hashCode() methods in JavaWhy to Override equals(Object) and hashCode() method ? Advertise with us Next Article Java.lang package in Java K kartik Follow Similar Reads Java.lang.Package Class in Java In Java, the package class was introduced in JDK 1.2 to encapsulate version data associated with a package. As the number of packages increases, knowing the version of the package has become important. This versioning information is retrieved and made available by the ClassLoader instance that loade 9 min read Java.io Package in Java Java.io Package in JavaThis package provides for system input and output through data streams, serialization and the file system. Unless otherwise noted, passing a null argument to a constructor or method in any class or interface in this package will cause a NullPointerException to be thrown. Follo 1 min read Java.util Package in Java Java.util PackageIt contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).Following are the Important Classes in Java.util package 4 min read JEP Package Tool in Java J package tool was introduced as an incubation tool in java 14. It remained an incubation tool till java 15. Â It packages java applications into platform-specific features. Basically, this tool converts our java source file into an executable file. In Windows, the executable file is of two types .ex 3 min read Java.lang.Runtime class in Java In Java, the Runtime class is used to interact with Every Java application that has a single instance of class Runtime that allows the application to interface with the environment in which the application is running. The current runtime can be obtained from the getRuntime() method. Methods of Java 6 min read Article Tags : Java Java-lang package Java-Packages Practice Tags : Java Like