The java.lang package

The java.lang.package provides fundamental classes used in nearly every Java application. In this section, we will look at the Character and String classes.

The Character class:

    public final class Character extends Object implements     Serializable, Comparable<Character>

This is one of the many core classes that has been around since the first version of Java. An object of the Character class consists of a single field of type char.

The String class:

    public final class String extends Object implements     Serializable, Comparable<String>, CharSequence

Strings, another core originating class, are immutable character strings.

Modifying the Character and String classes to support a newer version of Unicode, version 7.0 for Java ...

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.