3: API ContentsHomepage  « Java6 Certification « 3: API Contents

We start this section by looking at code that uses the primitive wrapper classes and/or autoboxing and unboxing. We then look at the differences between the String, StringBuilder, and StringBuffer classes. After this we investigate how we can use classes within the java.io package to read from files, write to files and use the BufferedReader, BufferedWriter, File, FileReader, FileWriter and PrintWriter sometimes in unison to create a software solution. We then use classes from the java.text package to correctly format or parse dates, numbers, and currency values for a specific locale including usage of the appropriate methods to use the default locale or a specific locale. We finish the section by looking at regular expressions and examine how to format and tokenize our data using Java6.

Lets take a look at the points outlined at the Oracle Website for this part of the certification.

  • Section 3: API Contents

    1. Develop code that uses the primitive wrapper classes (such as Boolean, Character, Double, Integer, etc.), and/or autoboxing & unboxing. Discuss the differences between the String, StringBuilder and StringBuffer classes.

    2. Given a scenario involving navigating file systems, reading from files, or writing to files, develop the correct solution using the following classes (sometimes in combination), from java.io: BufferedReader, BufferedWriter, File, FileReader, FileWriter, PrintWriter and Console.

    3. Use standard J2SE APIs in the java.text package to correctly format or parse dates, numbers, and currency values 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.

    4. 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. Recognize 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. Recognize and use formatting parameters (limited to: %b, %c, %d, %f, %s) in format strings.

3.1 Wrappers & Strings

In our first lesson within this section we start by looking at code that uses the primitive wrapper classes and/or autoboxing and unboxing. We then look at the differences between the String, StringBuilder, and StringBuffer classes.

3.2 Reading & Writing Files

In this lesson we investigate how we can use classes within the java.io package to read from files, write to files and use the BufferedReader, BufferedWriter, File, FileReader, FileWriter and PrintWriter sometimes in unison to create a software solution.

3.3 Dates, Numbers & Currencies

In this lesson we use classes from the java.text package to correctly format or parse dates, numbers, and currency values for a specific locale including usage of the appropriate methods to use the default locale or a specific locale.

3.4 Reg Exp/Formatting & Tokenizing

In our last lesson of the section we look at regular expressions and how we can use regular expression patterns for matching data. After this we look at formatting and tokenizing our data.


Related Java6 Tutorials

Beginning Java6 - Primitive Variables
API Contents - The String class
API Contents - The StringBuilder class
API Contents - The java.io.File Class
API Contents - The java.io.PrintWriter Class
API Contents - The java.io.BufferedReader Class
API Contents - The java.io.FileReader Class
API Contents - The java.io.BufferedWriter Class
API Contents - The java.io.FileWriter Class
API Contents - Dates, Numbers & Currencies
API Contents - Regular Expressions
API Contents - Formatting & Tokenizing

go to home page Java6 Tutor Homepage go to home page Top





All the Java6 Certification API Contents lessons are listed below. Click a link to go to that lesson.


3: API Contents

3.1 Wrappers & Strings

3.2 Reading & Writing Files

3.3 Dates, Numbers & Currencies

3.4 Regex / Formatting & Tokenizing