Declarations, Initialization and Scoping

Objective 1: Declarations, Initialization and Scoping(Total questions: 42, each session includes 30 random pick from the pool).

Click the "Take Quiz" tab above to start the exam or click here

Scope from the sun website - http://www.sun.com/training/catalog/courses/CX-310-065.xml

  • 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).
  • 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.
  • 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 naming standards. Also develop code that declares and uses a variable-length argument list.
  • 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.
  • 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.

    Before proceeding take a moment to register as it'll help you to come back & review the questions/exams you've taken. It'll also enable you to ask questions in our forums.

    This quiz closes Thu, 07/09/2009 - 05:00.