Author name: javaplanet.io

java.util.TimeZone

The java.util.TimeZone class represents a time zone offset and also figures out daylight saving time adjustments. It is used in conjunction with Calendar, Date, and the formatting classes. Commonly Used Methods Common Time Zone IDs Examples “UTC” “GMT” “Asia/Kolkata” “America/New_York” “Europe/London” For More Time Zone ID’s https://docs.oracle.com/middleware/1221/wcs/tag-ref/MISC/TimeZones.html Simple Example Problem Statement:Listing All TimeZones with GMT […]

java.util.TimeZone Read More »

java.util.Calendar

The java.util.Calendar class is an abstract class used to perform date and time arithmetic such as adding days, months, or retrieving specific fields (like year, month, day, etc.). It provides more functionality than java.util.Date and was introduced to overcome some limitations of the Date class. Key Features: Allows field-level manipulation (like setting specific year, month,

java.util.Calendar Read More »

java.util.Date

The java.util.Date class represents a specific instant in time, with millisecond precision. It was part of the original Java 1.0 and is located in the java.util package. Although many of its methods are deprecated in favor of the newer java.time API (Java 8+), it’s still widely used, especially when interacting with legacy systems or older

java.util.Date Read More »

Exploring java.util package

The java.util package in Java is a fundamental part of the Java Standard Library, providing a collection of utility classes that support various data structures, algorithms, and other functionalities. This package is crucial for efficient data management and manipulation in Java applications.Here’s a comprehensive overview of its key components: 1.Collections Framework The java.util package includes

Exploring java.util package Read More »

DateFormatSymbols

The DateFormatSymbols class (in java.text) provides locale-specific data used by DateFormat classes, such as: Month names Day names AM/PM markers Era strings It allows customization of how date and time values are formatted or parsed. Key Features: Helps DateFormat with textual date elements like months and days. Locale-sensitive. Customizable for creating localized or specialized date

DateFormatSymbols Read More »

Format

The Format class (in java.text) is an abstract base class used for formatting and parsing locale-sensitive information like numbers, dates, messages, and text. It provides a common interface for all formatting subclasses such as DateFormat, NumberFormat, MessageFormat, etc. Key Features: Serves as the superclass for all formatter classes. Defines the standard methods for formatting objects

Format Read More »

Bidi

The Bidi class (from java.text) handles bidirectional text layout, which is required when displaying text that mixes left-to-right (LTR) and right-to-left (RTL) scripts (e.g., English + Arabic or Hebrew). It’s primarily used for text rendering engines and internationalized UIs. Key Features: Supports Unicode Bidirectional Algorithm Determines the visual order of characters based on their directionality

Bidi Read More »

BreakIterator

The BreakIterator class (in java.text) is used to identify text boundaries such as words, sentences, lines, and characters. It is locale-sensitive and critical in text-processing applications like editors, search tools, and word counters. Key Features: Locale-aware breaking of text into Words,Sentences,Lines,Characters Supports internationalized text segmentation Abstract class with factory methods for different break types Commonly Used

BreakIterator Read More »

Scroll to Top