`
inforyj
  • 浏览: 7570 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
最近访客 更多访客>>
社区版块
存档分类
最新评论

SCJP(Exam 310-055) Certification Objective

    博客分类:
  • SCJP
阅读更多

Section 1: Declarations and Access Control <声明和访问控制>

 

1.1 Develop code that declares classes (including abstract and all forms of nested classes), interfaces, and enums, and includes the appropriate use of package and import statements (including static imports).

 

1.2 Develop code that declares an interface. Develop code that implements or extends one or more interfaces. Develop code that declares an abstract class. Develop code that extends an abstract class.

 

1. 3 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.

 

1.4 Develop code that declares both static and non-static methods, andif appropriateuse method names that adhere to the JavaBeans naming standards. Also develop code that declares and uses a variable-length argument list.

 

1.5 Given a code example, determine if a method is correctly overriding or overloading another method, and identify legal return values (including covariant returns), for the method.

 

1.6 Given a set of classes and superclasses, develop constructors for one or more of the classes. Given a class declaration, determine if a default constructor will be created, and if so, determine the behavior of that constructor. Given a nested or non-nested class listing, write code to instantiate the class.

 

Section 2: Flow Control, Exceptions, and Assertions <流程控制,异常和断言>

 

2. 1 Develop code that implements an if or switch statement; and identify legal argument types for these statements.

 

2.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; and explain the values taken by loop counter variables during and after loop execution.

 

2.3 Develop code that makes use of assertions, and distinguish appropriate from inappropriate uses of assertions.

 

 2.4 Develop code that makes use of exceptions and exception handling clauses (try, catch, finally), and declares methods and overriding methods that throw exceptions.

 

2.5 Recognize the effect of an exception arising at a specific point in a code fragment, Note that the exception may he a runtime exception, a checked exception, or an error.

 

2.6 Recognize situations that will result in any of the following being thrown: ArrayIndexOutOfBoundsException, ClassCastException, IllegalArgumentException, IllegalStateException, NullPointerException, NumberFormatException, AssertionError, ExceptionInInitializerError, StackOverflowError, or NoClassDefFoundError. Understand which of these are thrown by the virtual machine and recognize situations in which others should be thrown programmatically.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics