Title: Sun Certified Associate for the Java Platform, Standard Edition, Exam Version 1.0 questions
Description:The Sun Certified Associate for the Java Platform, Standard Edition, Exam Version 1.0 certification exam provides an ideal entry into an application development or a software project management career using Java technologies. This worldwide credential validates basic knowledge of Object-Oriented Concepts, UML representation of OO concepts, the Java programming language, and general knowledge of Java Platforms and Technologies. Candidates for this exam include: entry level Java programmers, students studying to become Java programmers, project or program managers working with Java technology in the software development industry.
Number of questions: 64 questions
Has explanations: Yes
Objectives:
- Section 5: OO Concepts
- Section 2: UML Representation of Object-Oriented Concepts
- Section 3: Java Implementation of Object-Oriented Concepts
- Section 4: Algorithm Design and Implementation
- Section 6: Java Platforms and Integration Technologies
- Section 7: Client Technologies
- Section 8: Server Technologies
- Operational / Organizational Security 15%
Given a class Repetition:
1. package utils;
2.
3. public class Repetition
4. public static String twice(String s) { return s + s;}
5. }
and given another class Demo:
1. //insert code here
2.
3. public class Demo {
4. public static void main(String[] args) {
5. System.out.println(twice(?pizza?));
6. }
7. }
Which code should be inserted at line 1 of Demo.java to compile and run Demo to print
?pizzapizza??
Answer(s)
- - import utils.*;
- - static import utils.*;
- - import utils.Repetition.*;
- - static import utils.Repetition.*;
- - import utils.Repetition.twice();
- - import static utils.Repetition.twice;
- - static import utils.Repetition.twice;
Correct Answer
- - import static utils.Repetition.twice;