Site MapHelpFeedbackChapter Summary
Chapter Summary
(See related pages)

• The char data type represents a single character.
• The char constant is denoted by a single quotation mark, for example, ‘a’.
• The character coding scheme used widely today is ASCII (American Standard Code for Information Exchange).
• Java uses Unicode, which is capable of representing characters of diverse languages. ASCII is compatible with Unicode.
• Astring is a sequence of characters, and in Java, strings are represented by String objects.
• The Pattern and Matcher classes are introduced in Java 2 SDK 1.4. They provide support for pattern-matching applications.
• Regular expression is used to represent a pattern to match (search) in a given text.
• The String objects are immutable. Once they are created, they cannot be changed.
• To manipulate mutable strings, use StringBuffer.
• Strings are objects in Java, and the rules for comparing objects apply when comparing strings.
• Only one String object is created for the same literal String constants.
• The standard classes described or used in this chapter are:
String    Pattern
StringBuffer    Matcher
StringBuilder







WuOnline Learning Center

Home > Chapter 9 > Chapter Summary