Title: Sun Certified Programmer for the Java Platform, Standard Edition 5.0 questions
Description: The Sun Certified Programmer for the Java Platform, Standard Edition 5.0 certification exam is for programmers experienced using the Java programming language. Achieving this certification provides clear evidence that a programmer understands the basic syntax and structure of the Java programming language and can create Java technology applications that run on server and desktop systems using J2SE 5.0.
Number of questions: 9 questions
Has explanations: Yes
Objectives: - Section 1: Declarations, Initialization and Scoping
- Section 2: Flow Control
- API Contents
- Section 4: Concurrency
- Section 5: OO Concepts
- Section 6: Collections / Generics
- Section 7: Fundamentals
- General Security Concepts 30%
- Communication Security 20%
- Infrastructure Security 20%
- Basics of Cryptography 15%
- Operational / Organizational Security 15%
Given the following program:
enum Test{one, two , three};
class TestEnum {
public static void main (String args[]){
Test col = Test.two;
switch(col) {
case one:System.out.print("one is printed");
default:System.out.print("default will be printed");
case two:System.out.print("two is printed ");
case three:System.out.print("three will be printed");
}
}
}
What will the program display?
Answer(s) - one will be printed
- two will be printed
- three will be printed
- default will be printed
- two will be printed three will be printed
- default will be printed two will be printed
Correct Answer - two will be printed three will be printed