Author: saqibkhan

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

  • UnicodeBlock Class

    The Java Character.UnicodeBlock class is a family of character subsets representing the character blocks in the Unicode specification. Character blocks generally define characters used for a specific script or purpose. Class Declaration Following is the declaration for java.lang.Character.UnicodeBlock class − Class Methods Sr.No. Method & Description 1 forName()This method returns the UnicodeBlock with the given name. 2 of()This method…

  • Subset Class

    The java.lang.Character.Subset class instances represent particular subsets of the Unicode character set. The only family of subsets defined in the Character class is UnicodeBlock. Class Declaration Following is the declaration for java.lang.Character.Subset class − Class Constructors Sr.No. Constructor & Description 1 protected Character.Subset(String name)This constructs a new Subset instance. Learn Java in-depth with real-world projects through our Java certification course. Enroll and…

  • Byte class with Examples

    Introduction The Java Byte class class wraps a value of primitive type byte in an object. An object of type Byte contains a single field whose type is byte. Class Declaration Following is the declaration for java.lang.Byte 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…

  • Unicode Conversion from/to Reader/Writer

    Reader and Writer classes are character oriented stream classes. These can be used to read and convert Unicode characters. Conversion Following example will showcase conversion of a Unicode String to UTF8 byte[] and UTF8 byte[] to Unicode byte[] using Reader and Writer classes. Example Open Compiler Output It will print the following result.

  • Unicode Conversion from/to String

    In java, text is internally stored in Unicode format. If input/output is in differnt format then conversion is required. Conversion Following example will showcase conversion of a Unicode String to UTF8 byte[] and UTF8 byte[] to Unicode byte[]. Example Open Compiler Output It will print the following result.

  • UTC

    UTC stands for Co-ordinated Universal Time. It is time standard and is commonly used across the world. All timezones are computed comparatively with UTC as offset. For example, time in Copenhagen, Denmark is UTC + 1 means UTC time plus one hour. It is independent of Day light savings and should be used to store…

  • Date Format Patterns

    Followings is the use of characters in date formatting patterns. Sr.No. Class & Description 1 GTo display Era. 2 yTo display Year. Valid values yy, yyyy. 3 MTo display Month. Valid values MM, MMM or MMMMM. 4 dTo display day of month. Valid values d, dd. 5 hTo display hour of day (1-12 AM/PM). Valid…

  • DateFormatSymbols Class

    Using DecimalFormatSymbols class, the default separator symbols, grouping separator symbols etc. can be changed. Following example is illustrating the same. Example Open Compiler Output It will print the following result.