Technology Resources

310-065

 

 

Up

 

Exam Objectives


Section 1: Declarations, Initialization and Scoping

  1. Develop code that
    bulletdeclares classes, including abstract and all forms of nested classes, interfaces, and enums, and
    bulletincludes the appropriate use of package and import statements, including static imports.
  2. Develop code that declares an interface.
    bulletDevelop code that implements or extends one or more interfaces.
    bulletDevelop code that declares an abstract class.
    bulletDevelop code that extends an abstract class.
  3. Develop code that declares, initializes, and uses
    bulletprimitives, arrays, enums, and objects as static, instance, and local variables.
    bulletAlso, use legal identifiers for variable names.
  4. Develop code that declares
    bulletboth static and non-static methods, and, if appropriate,
    bulletuse method names that adhere to the JavaBeans naming standards.
    bulletAlso develop code that declares and uses a variable-length argument list.
  5. Given a code example,
    bulletdetermine if a method is correctly overriding or overloading another method, and
    bulletidentify legal return values (including covariant returns), for the method.
  6. Given a set of classes and superclasses,
    bulletdevelop constructors for one or more of the classes.
    bulletGiven a class declaration, determine if a default constructor will be created, and if so, determine the behavior of that constructor.
    bulletGiven a nested or non-nested class listing, write code to instantiate the class.

Section 2: Flow Control

  1. Develop code that implements an if or switch statement; and identify legal argument types for these statements.
  2. Develop code that implements all forms of loops and iterators, including the use of for, the enhanced for loop (for-each), do, while, labels, break, and continue;
    bulletand explain the values taken by loop counter variables during and after loop execution.
  3. Develop code that makes use of assertions,
    bulletand distinguish appropriate from inappropriate uses of assertions.
  4. Develop code that makes use of exceptions and exception handling clauses (try, catch, finally),
    bulletand declares methods and overriding methods that throw exceptions.
  5. Recognize the effect of an exception arising at a specified point in a code fragment.
    bulletNote that the exception may be a runtime exception, a checked exception, or an error.
  6. Recognize situations that will result in any of the following being thrown:
    bulletList of exceptions:
    bulletArrayIndexOutOfBoundsException
    bulletClassCastException
    bulletIllegalArgumentException
    bulletIllegalStateException
    bulletNullPointerException
    bulletNumberFormatException
    bulletAssertionError
    bulletExceptionInInitializerError
    bulletStackOverflowError
    bulletNoClassDefFoundError
    bulletUnderstand which of these are thrown by the virtual machine and recognize situations in which others should be thrown programatically.


Section 3: API Contents

  1. Develop code that uses the primitive wrapper classes from the java.lang, such as
    bulletBoolean, Character, Double, Float, Byte, Short, Integer, Long, and/or autoboxing & unboxing.
    bulletDiscuss the differences between the String, StringBuilder, and StringBuffer classes.
  2. Given a scenario involving navigating file systems, reading from files, writing to files, or interacting with the user, develop the correct solution using the following classes (sometimes in combination),  from java.io:
    bullet BufferedReader, BufferedWriter, File, FileReader, FileWriter, PrintWriter, and Console.
  3. Develop code that serializes and/or de-serializes objects using the following APIs from java.io:
    bullet DataInputStream, DataOutputStream, FileInputStream, FileOutputStream, ObjectInputStream, ObjectOutputStream, and Serializable.
  4. Use standard Java SE APIs in the java.text package to
    bulletcorrectly format or parse dates, numbers, and currency values for a specific locale;
    bulletand, given a scenario, determine the appropriate methods to use if you want to use the default locale or a specific locale.
    bulletDescribe the purpose and use of the java.util Locale class.
  5. Write code that uses standard Java SE APIs in the java.util and java.util.regex packages to format or parse strings or streams.
    bulletFor strings, write code that uses the Pattern and Matcher classes and the String.split method.
    bulletRecognize 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.
    bulletFor streams, write code using the Formatter and Scanner classes and the PrintWriter/PrintStream format/printf methods.
    bulletRecognize and use formatting parameters (limited to: %b, %c, %d, %f, %s) in format strings.


Section 4: Concurrency

  1. Write code to define, instantiate, and start new threads using both java.lang.Thread and java.lang.Runnable.
  2. Recognize the states in which a thread can exist, and identify ways in which a thread can transition from one state to another.
  3. Given a scenario, write code that makes appropriate use of object locking to protect static or instance variables from concurrent access problems.
  4. Given a scenario, write code that makes appropriate use of wait, notify, or notifyAll.


Section 5: OO Concepts

  1. Develop code that implements tight encapsulation, loose coupling, and high cohesion in classes, and describe the benefits.
  2. Given a scenario,
    bulletdevelop code that demonstrates the use of polymorphism.
    bulletFurther, determine when casting will be necessary and recognize compiler vs. runtime errors related to object reference casting.
  3. Explain the effect of modifiers on inheritance with respect to
    bulletconstructors,
    bulletinstance or static variables, and
    bulletinstance or static methods.
  4. Given a scenario, develop code that
    bulletdeclares and/or invokes overriden and overloaded methods and
    bulletcode that declares and/or invokes superclass, or overloaded constructors.
  5. Develop code that implements "is-a" and/or "has-a" relationships.


Section 6: Collections / Generics

  1. Given a design scenario, determine which collection classes and/or interfaces should be used to properly implement that design, including the use of the Comparable interface.
  2. Distinguish between correct and incorrect overrides of corresponding hashCode and equals methods, and explain the difference between == and the equals method.
  3. Write code that uses the generic versions of the Collections API, in particular, the Set, List, and Map interfaces and implementation classes.
    bulletRecognize the limitations of the non-generic Collections API and how to refactor code to use the generic versions.
    bulletWrite code that uses the NavigableSet and NavigableMap interfaces.
  4. Develop code that makes proper use of type parameters in class/interface declarations, instance variables, method arguments, and return types;
    bulletand write generic methods or methods that make use of wildcard types and understand the similarities and differences between these two approaches.
  5. Use capabilities in the java.util package to write code to manipulate a list by sorting, performing a binary search, or converting the list to an array.
    bulletUse capabilities in the java.util package to write code to manipulate an array by sorting, performing a binary search, or converting the array to a list.
    bulletUse the java.util.Comparator and java.lang.Comparable interfaces to affect the sorting of lists and arrays.
    bulletFurthermore, recognize the effect of the "natural ordering" of primitive wrapper classes and java.lang.String on sorting.


Section 7: Fundamentals

  1. Given a code example and a scenario, write code that uses
    bulletthe appropriate access modifiers, package declarations, and import statements to interact with (through access or inheritance) the code in the example.
  2. Given an example of a class and a command-line, determine the expected runtime behavior.
  3. Determine the effect upon object references and primitive values when they are passed into methods that perform assignments or other modifying operations on the parameters.
  4. Given a code example, recognize the point at which an object becomes eligible for garbage collection, determine what is and is not guaranteed by the garbage collection system, and recognize the behaviors of the Object.finalize() method.
  5. Given the fully-qualified name of a class that is deployed inside and/or outside a JAR file, construct the appropriate directory structure for that class.
    bulletGiven a code example and a classpath, determine whether the classpath will allow the code to compile successfully.
  6. Write code that correctly applies the appropriate operators including
    bulletassignment operators (limited to: =, +=, -=), arithmetic operators (limited to: +, -, *, /, %, ++, --),
    bulletrelational operators (limited to: <, <=, >, >=, ==, !=),
    bulletthe instanceof operator,
    bulletlogical operators (limited to: &, |, ^, !, &&, ||),
    bulletand the conditional operator ( ? : ), to produce a desired result.
    bulletWrite code that determines the equality of two objects or two primitives.

Last Modified: November 17, 2011