Author: saqibkhan

  • Environment Setup

    This section guides you on how to download and set up Java on your machine. Please follow the following steps to set up the environment. Java SE is freely available from the link Download Java. So you download a version based on your operating system. Follow the instructions to download java and run the .exe to install Java…

  • Overview

    Java.nio package was introduced in java 1.4. In contrast of java I/O in java NIO the buffer and channel oriented data flow for I/O operations is introduced which in result provide faster execution and better performance. Also NIO API offer selectors which introduces the functionality of listen to multiple channels for IO events in asynchronous…

  • 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.…