|
 
- Thread
- 255
- Credit
- 2
- Money
- 2
- Read Perm.
- 150
- From
- Phnom Penh
- Joined
- 2-3-2009
    
|
Sun Certified SCJP (CX-310-065) Exam objective
Sun Certified Programmer for the Java Platform, Standard Edition 6
The Sun Certified Programmer for Java Platform, Standard Edition 6certification exam is for programmers experienced using the Javaprogramming language. Achieving this certification provides clearevidence that a programmer understands the basic syntax and structureof the Java programming language and can create Java technologyapplications that run on server and desktop systems using Java SE 6.
Exam Objectives
Section 1: Declarations, Initialization and Scoping
- Develop code that declares classes (including abstract and allforms of nested classes), interfaces, and enums, and includes theappropriate use of package and import statements (including staticimports).
- Develop code that declares an interface. Develop code thatimplements or extends one or more interfaces. Develop code thatdeclares an abstract class. Develop code that extends an abstract class.
- Develop code that declares, initializes, and uses primitives,arrays, enums, and objects as static, instance, and local variables.Also, use legal identifiers for variable names.
- Develop code that declares both static and non-static methods, and- if appropriate - use method names that adhere to the JavaBeans namingstandards. Also develop code that declares and uses a variable-lengthargument list.
- Given a code example, determine if a method is correctly overridingor overloading another method, and identify legal return values(including covariant returns), for the method.
- Given a set of classes and superclasses, develop constructors forone or more of the classes. Given a class declaration, determine if adefault constructor will be created, and if so, determine the behaviorof that constructor. Given a nested or non-nested class listing, writecode to instantiate the class.
Section 2: Flow Control
- Develop code that implements an if or switch statement; and identify legal argument types for these statements.
- 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; and explain the values taken by loopcounter variables during and after loop execution.
- Develop code that makes use of assertions, and distinguish appropriate from inappropriate uses of assertions.
- Develop code that makes use of exceptions and exception handlingclauses (try, catch, finally), and declares methods and overridingmethods that throw exceptions.
- Recognize the effect of an exception arising at a specified pointin a code fragment. Note that the exception may be a runtime exception,a checked exception, or an error.
- Recognize situations that will result in any of the following beingthrown: ArrayIndexOutOfBound***ception,ClassCastException,IllegalArgumentException, IllegalStateException, NullPointerException,NumberFormatException, AssertionError, ExceptionInInitializerError,StackOverflowError or NoClassDefFoundError. Understand which of theseare thrown by the virtual machine and recognize situations in whichothers should be thrown programatically.
Section 3: API Contents
- Develop code that uses the primitive wrapper classes (such asBoolean, Character, Double, Integer, etc.), and/or autoboxing &unboxing. Discuss the differences between the String, StringBuilder,and StringBuffer classes.
- Given a scenario involving navigating file systems, reading fromfiles, writing to files, or interacting with the user, develop thecorrect solution using the following classes (sometimes incombination), from java.io: BufferedReader, BufferedWriter, File,FileReader, FileWriter, PrintWriter, and Console.
- Develop code that serializes and/or de-serializes objects using thefollowing APIs from java.io: DataInputStream, DataOutputStream,FileInputStream, FileOutputStream, ObjectInputStream,ObjectOutputStream and Serializable.
- Use standard J2SE APIs in the java.text package to correctly formator parse dates, numbers, and currency values for a specific locale;and, given a scenario, determine the appropriate methods to use if youwant to use the default locale or a specific locale. Describe thepurpose and use of the java.util.Locale class.
- Write code that uses standard J2SE APIs in the java.util andjava.util.regex packages to format or parse strings or streams. Forstrings, write code that uses the Pattern and Matcher classes and theString.split method. Recognize and use regular expression patterns formatching (limited to: . (dot), * (star), + (plus), ?, \d, \s, \w, [],()). The use of *, +, and ? will be limited to greedy quantifiers, andthe parenthesis operator will only be used as a grouping mechanism, notfor capturing content during matching. For streams, write code usingthe Formatter and Scanner classes and the PrintWriter.format/printfmethods. Recognize and use formatting parameters (limited to: %b, %c,%d, %f, %s) in format strings.
Section 4: Concurrency
- Write code to define, instantiate, and start new threads using both java.lang.Thread and java.lang.Runnable.
- Recognize the states in which a thread can exist, and identify ways in which a thread can transition from one state to another.
- Given a scenario, write code that makes appropriate use of objectlocking to protect static or instance variables from concurrent accessproblems.
- Given a scenario, write code that makes appropriate use of wait, notify, or notifyAll.
Section 5: OO Concepts
- Develop code that implements tight encapsulation, loose coupling, and high cohesion in classes, and describe the benefits.
- Given a scenario, develop code that demonstrates the use ofpolymorphism. Further, determine when casting will be necessary andrecognize compiler vs. runtime errors related to object referencecasting.
- Explain the effect of modifiers on inheritance with respect toconstructors, instance or static variables, and instance or staticmethods.
- Given a scenario, develop code that declares and/or invokesoverridden or overloaded methods and code that declares and/or invokessuperclass, or overloaded constructors.
- Develop code that implements "is-a" and/or "has-a" relationships.
Section 6: Collections / Generics
- Given a design scenario, determine which collection classes and/orinterfaces should be used to properly implement that design, includingthe use of the Comparable interface.
- Distinguish between correct and incorrect overrides ofcorresponding hashCode and equals methods, and explain the differencebetween == and the equals method.
- Write code that uses the generic versions of the Collections API,in particular, the Set, List, and Map interfaces and implementationclasses. Recognize the limitations of the non-generic Collections APIand how to refactor code to use the generic versions. Write code thatuses the NavigableSet and NavigableMap interfaces.
- Develop code that makes proper use of type parameters inclass/interface declarations, instance variables, method arguments, andreturn types; and write generic methods or methods that make use ofwildcard types and understand the similarities and differences betweenthese two approaches.
- Use capabilities in the java.util package to write code tomanipulate a list by sorting, performing a binary search, or convertingthe list to an array. Use capabilities in the java.util package towrite code to manipulate an array by sorting, performing a binarysearch, or converting the array to a list. Use the java.util.Comparatorand java.lang.Comparable interfaces to affect the sorting of lists andarrays. Furthermore, recognize the effect of the "natural ordering" ofprimitive wrapper classes and java.lang.String on sorting.
Section 7: Fundamentals
- Given a code example and a scenario, write code that uses theappropriate access modifiers, package declarations, and importstatements to interact with (through access or inheritance) the code inthe example.
- Given an example of a class and a command-line, determine the expected runtime behavior.
- Determine the effect upon object references and primitive valueswhen they are passed into methods that perform assignments or othermodifying operations on the parameters.
- Given a code example, recognize the point at which an objectbecomes eligible for garbage collection, determine what is and is notguaranteed by the garbage collection system, and recognize thebehaviors of the Object.finalize() method.
- Given the fully-qualified name of a class that is deployed insideand/or outside a JAR file, construct the appropriate directorystructure for that class. Given a code example and a classpath,determine whether the classpath will allow the code to compilesuccessfully.
- Write code that correctly applies the appropriate operatorsincluding assignment operators (limited to: =, +=, -=), arithmeticoperators (limited to: +, -, *, /, %, ++, --), relational operators(limited to: <, <=, >, >=, ==, !=), the instanceofoperator, logical operators (limited to: &, |, ^, !, &&,||), and the conditional operator ( ? : ), to produce a desired result.Write code that determines the equality of two objects or twoprimitives.
the Certification sample:
|
Not Everything Is As It Seems
KhmerITForum.net ...Unlimited resource for you
Email : dollar.duong@gmail.com
( CCNP, CCNA, JNCIS-ER, JNCIA-ER, JNCIA-EX ) |
|