Certified Core Java Developer Learning Resources Java lang

Learning Resources
 

Java. lang

The java.langpackage provides classes that are fundamental to the design of the JavaTM programming language. The java.lang.refsand java.lang.reflectpackages provide, respectively, reference-object classes and APIs for obtaining reflective information about classes.


The java.lang package

Each package defines a number of classes, interfaces, exceptions, and errors. For example, in Java 1.1 the java.lang package contains these:

Interfaces in java.lang

  • Cloneable
  • Runnable
  •  

Classes in java.lang

  • Boolean
  • Byte
  • Character
  • Class
  • ClassLoader
  • Compiler
  • Double
  • Float
  • Integer
  • Long
  • Math
  • Number
  • Object
  • Process
  • Runtime
  • SecurityManager
  • Short
  • String
  • StringBuffer
  • System
  • Thread
  • ThreadGroup
  • Throwable
  • Void

Exceptions in java.lang

  • ArithmeticException
  • ArrayIndexOutOfBoundsException
  • ArrayStoreException
  • ClassCastException
  • ClassNotFoundException
  • CloneNotSupportedException
  • Exception
  • IllegalAccessException
  • IllegalArgumentException
  • IllegalMonitorStateException
  • IllegalStateException
  • IllegalThreadStateException
  • IndexOutOfBoundsException
  • InstantiationException
  • InterruptedException
  • NegativeArraySizeException
  • NoSuchFieldException
  • NoSuchMethodException
  • NullPointerException
  • NumberFormatException
  • RuntimeException
  • SecurityException
  • StringIndexOutOfBoundsException

Errors in java.lang

  • AbstractMethodError
  • ClassCircularityError
  • ClassFormatError
  • Error
  • ExceptionInInitializerError
  • IllegalAccessError
  • IncompatibleClassChangeError
  • InstantiationError
  • InternalError
  • LinkageError
  • NoClassDefFoundError
  • NoSuchFieldError
  • NoSuchMethodError
  • OutOfMemoryError
  • StackOverflowError
  • ThreadDeath
  • UnknownError
  • UnsatisfiedLinkError
  • VerifyError
  • VirtualMachineError
 For Support