Category: 11. Java.lang Package

  • Math 

    Java Math Class The java.lang.Math class contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions. Math Class Declaration Following is the declaration for java.lang.Math class − publicfinalclassMathextendsObject Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career. Java Math Class Fields Following…

  • Long 

    Introduction The Java Long class wraps a value of the primitive type long in an object. An object of type Long contains a single field whose type is long. Class Declaration Following is the declaration for java.lang.Long class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career. Field Following…

  • Integer 

    Introduction The Java Integer class wraps a value of primitive type int in an object. An object of type Integer contains a single field whose type is int. Class Declaration Following is the declaration for java.lang.Integer class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career. Field Following are…

  • InheritableThreadLocal

    Introduction The Java InheritableThreadLocal 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. Class Declaration Following is the declaration for java.lang.InheritableThreadLocal class − Learn Java in-depth with real-world projects through our Java certification course. Enroll…

  • Float class with Examples

    Introduction The Java Float class wraps a value of primitive type float in an object. An object of type Float contains a single field whose type is float. Class Declaration Following is the declaration for java.lang.Float class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career. Field Following are…

  • Enum class

    Introduction The Java Enum class is the common base class of all Java language enumeration types. Class Declaration Following is the declaration for java.lang.Enum class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career. Class constructors Sr.No. Constructor & Description 1 protected Enum(String name, int ordinal)This is the single…

  • Double 

    Introduction The Java Double class wraps a value of primitive type double in an object. An object of type Double contains a single field whose type is double. Class Declaration Following is the declaration for java.lang.Double class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career. Field Following are…

  • Compiler 

    Introduction The Java Compiler class is provided to support Java-to-native-code compilers and related services. By design, it serves as a placeholder for a JIT compiler implementation. Note − This API is deprecated since Java 9 and is not available Java 21 onwards. Class Declaration Following is the declaration for java.lang.Compiler class − Learn Java in-depth with real-world projects through our Java certification course.…

  • ClassLoader 

    Introduction The Java ClassLoader class is an object that is responsible for loading classes. This class is an abstract class. It may be used by security managers to indicate security domains. Class Declaration Following is the declaration for java.lang.ClassLoader class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career.…

  • Class

    Introduction The Java Class class instance represent classes and interfaces in a running Java application. It has no public constructor. Class Declaration Following is the declaration for java.lang.Class class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career. Class methods Sr.No. Method & Description 1 <U> Class<? extends U>…