Java Reference
In-Depth Information
Chapter
4
API Contents
SCJP EXAM OBJECTIVES COVERED IN
THIS CHAPTER:
Develop code that uses the primitive wrapper classes
(such as Boolean, Character, Double, Integer, etc.), and/or
autoboxing and unboxing. Discuss the differences between
the String, StringBuilder, and StringBuffer classes.
Given a scenario involving navigating file systems, read-
ing from files, writing to files, or interacting with the
user, develop the correct solution using the following
classes (sometimes in combination), from java.io: Buff-
eredReader, BufferedWriter, File, FileReader, FileWriter,
PrintWriter, and Console.
Develop code that serializes and/or de-serializes objects
using the following APIs from java.io: DataInputStream,
DataOutputStream, FileInputStream, FileOutputStream,
ObjectInputStream, ObjectOutputStream and Serializable.
Use standard J2SE APIs in the java.text package to cor-
rectly format or parse dates, numbers, and currency val-
ues for a specific locale; and, given a scenario, determine
the appropriate methods to use if you want to use the
default locale or a specific locale. Describe the purpose
and use of the java.util.Locale class.
Write code that uses standard J2SE APIs in the java.util
and java.util.regex packages to format or parse strings
or streams. For strings, write code that uses the Pattern
and Matcher classes and the String.split method. Rec-
ognize and use regular expression patterns for matching
(limited to: . (dot), * (star), + (plus), ?, \ d, \ s, \ w, [], ()). The
use of *, +, and ? will be limited to greedy quantifiers, and
the parenthesis operator will only be used as a grouping
mechanism, not for capturing content during matching.
For streams, write code using the Formatter and Scanner
classes and the PrintWriter.format/printf methods. Recog-
nize and use formatting parameters (limited to: %b, %c,
%d, %f, %s) in format strings.
Search WWH ::




Custom Search