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: 60 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:
10: public class Hello {
11: String title;
12: intvalue;
13: public Hello() {
14: title += ? VVorld?;
15: }
16: public Hello(int value) {
17: this.value = value;
18: title = ?Hello?;
19: Hello();
20: }
21: }
and:
30: Hello c = new Hello(5);
31: System.out.println(c.title);
What is the result?
Answer(s)
- - Hello
- - Hello World
- - Compilation fails.
- - Hello World 5
- - The code runs with no output.
- - An exception is thrown at runtime.
Correct Answer