Skip to main content

Java Lang Package

The Java Lang package is a built-in package in the Java programming language that provides fundamental classes and interfaces that are used by all Java programs. This package is automatically imported by every Java program, and it includes classes for basic data types, such as integers, floating-point numbers, and characters, as well as classes for strings, arrays, exceptions, threads, and more.

Some of the classes and interfaces provided by the Java Lang package include:

  • Object: The root class of the Java class hierarchy, from which all other classes inherit.

  • String: A class for representing strings of characters.

  • Integer, Float, Double, and other number classes: Classes for representing numbers of different types.

  • Math: A class that provides common mathematical functions.

  • Thread: A class for creating and managing threads of execution.

  • Exception: A class for representing exceptions, which are used for handling errors and exceptional conditions in a program.

Overall, the Java Lang package provides the building blocks that are essential for writing Java programs, and its classes and interfaces are used extensively throughout the Java API and by third-party libraries and frameworks.

Where is Java Lang package?

lang package are exist in java.lang package.

What is included in Java lang?

There is file directory of java.lang package. which include of class and sub packages.

  •  annotation
  •  instrument
  •  invoke
  •  management
  •  ref
  •  reflect
  • AbstractMethodError.java
  • AbstractStringBuilder.java
  • Appendable.java
  • ApplicationShutdownHooks.java
  • ArithmeticException.java
  • ArrayIndexOutOfBoundsException.java
  • ArrayStoreException.java
  • AssertionError.java
  • AssertionStatusDirectives.java
  • AutoCloseable.java
  • Boolean.java
  • BootstrapMethodError.java
  • Byte.java
  • CharSequence.java
  • Character.java
  • CharacterData.java
  • CharacterName.java
  • Class.java
  • ClassCastException.java
  • ClassCircularityError.java
  • ClassFormatError.java
  • ClassLoader.java
  • ClassNotFoundException.java
  • ClassValue.java
  • CloneNotSupportedException.java
  • Cloneable.java
  • Comparable.java
  • Compiler.java
  • ConditionalSpecialCasing.java
  • Deprecated.java
  • Double.java
  • Enum.java
  • EnumConstantNotPresentException.java
  • Error.java
  • Exception.java
  • ExceptionInInitializerError.java
  • Float.java
  • FunctionalInterface.java
  • IllegalAccessError.java
  • IllegalAccessException.java
  • IllegalArgumentException.java
  • IllegalMonitorStateException.java
  • IllegalStateException.java
  • IllegalThreadStateException.java
  • IncompatibleClassChangeError.java
  • IndexOutOfBoundsException.java
  • InheritableThreadLocal.java
  • InstantiationError.java
  • InstantiationException.java
  • Integer.java
  • InternalError.java
  • InterruptedException.java
  • Iterable.java
  • LinkageError.java
  • Long.java
  • Math.java
  • NegativeArraySizeException.java
  • NoClassDefFoundError.java
  • NoSuchFieldError.java
  • NoSuchFieldException.java
  • NoSuchMethodError.java
  • NoSuchMethodException.java
  • NullPointerException.java
  • Number.java
  • NumberFormatException.java
  • Object.java
  • OutOfMemoryError.java
  • Override.java
  • Package.java
  • Process.java
  • ProcessBuilder.java
  • Readable.java
  • ReflectiveOperationException.java
  • Runnable.java
  • Runtime.java
  • RuntimeException.java
  • RuntimePermission.java
  • SafeVarargs.java
  • SecurityException.java
  • SecurityManager.java
  • Short.java
  • Shutdown.java
  • StackOverflowError.java
  • StackTraceElement.java
  • StrictMath.java
  • String.java
  • StringBuffer.java
  • StringBuilder.java
  • StringCoding.java
  • StringIndexOutOfBoundsException.java
  • SuppressWarnings.java
  • System.java
  • Thread.java
  • ThreadDeath.java
  • ThreadGroup.java
  • ThreadLocal.java
  • Throwable.java
  • TypeNotPresentException.java
  • UnknownError.java
  • UnsatisfiedLinkError.java
  • UnsupportedClassVersionError.java
  • UnsupportedOperationException.java
  • VerifyError.java
  • VirtualMachineError.java
  • Void.java
  • package-info.java




Comment

Please share your knowledge to improve code and content standard. Also submit your doubts, and test case. We improve by your feedback. We will try to resolve your query as soon as possible.

New Comment