Title: Sun Certified Programmer for the Java Platform, Standard Edition 6 questions
Description: The Sun Certified Programmer for Java Platform, Standard Edition 6 certification exam is for programmers experienced using the Java programming language. Achieving this certification provides 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 Java Platform, Standard Edition 6 Sun strongly recommends that all new candidates interested in becoming a Sun Certified Java Programmer (SCJP) take this new version of the certification exam, rather than a previous version. In this way, candidates can demonstrate that they are knowledgeable in the latest technology. Sun also recommends that those certified on a previous version of SCJP update their credentials by taking the SCJP 6 Upgrade exam
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:
1. class ClassA {
2. public int numberOfInstances;
3. protected ClassA(int numberOfInstances) {
4. this.numberOfInstances = number OfInstances;
5. }
6. }
7. public class ExtendedA extends ClassA {
8. private ExtendedA(int numberOfInstances) {
9. super(numberOfInstances);
10. }
11. public static void main(String[] args) {
12. ExtendedA ext = new ExtendedA(420);
13. System.out.pint(ext. numberOfInstances);
14. }
15. }
Which statement is true?
Answer(s) - 420 is the outpur
- An exception is thrown at runtime
- All constructors must declared public
- Constructors CANNOT use the private modifier
- Constructors CANNOT use the protected modifier
Correct Answer