최신Oracle Java Standard Edition 5 and 6, Certified Associate - 1Z0-850무료샘플문제
문제1
Given:
1 . class Test2 {
2 . static String setMessage(String str) {
3 . return str + "How are you doing?";
4 . }
5 .
6 . public static void main(String[] args) {
7 . String str = "Hello! ";
8 . str = setMessage(str);
9 . System.out.println("str : " + str);
1 0. }
1 1. }
What is the result?
Given:
1 . class Test2 {
2 . static String setMessage(String str) {
3 . return str + "How are you doing?";
4 . }
5 .
6 . public static void main(String[] args) {
7 . String str = "Hello! ";
8 . str = setMessage(str);
9 . System.out.println("str : " + str);
1 0. }
1 1. }
What is the result?
정답: E
문제2
Click the Exhibit button.
Which two are true? (Choose two.)

Click the Exhibit button.
Which two are true? (Choose two.)

정답: B,D
문제3
A Java developer needs to be able to send email, containing XML attachments, using
SMTP. Which J2EE technology provides this capability?
A Java developer needs to be able to send email, containing XML attachments, using
SMTP. Which J2EE technology provides this capability?
정답: C
문제4
Why should package names in Java be unique?
Why should package names in Java be unique?
정답: D
문제5
Given:
1 . interface Flyer {
2 . void takeOff();
3 . boolean land();
4 . }
5 . class Airplane implements Flyer {
6 . public void takeOff() { /* some code */ }
7 . // insert code here
8 . return true;
9 . }
1 0. }
Which, inserted at line 8, correctly implements the interface?
Given:
1 . interface Flyer {
2 . void takeOff();
3 . boolean land();
4 . }
5 . class Airplane implements Flyer {
6 . public void takeOff() { /* some code */ }
7 . // insert code here
8 . return true;
9 . }
1 0. }
Which, inserted at line 8, correctly implements the interface?
정답: C
문제6
Given:
17. class B { }
Which demonstrates inheritance?
Given:
17. class B { }
Which demonstrates inheritance?
정답: A
문제7
Which two are true? (Choose two.)
Which two are true? (Choose two.)
정답: A,C
문제8
Which is an advantage of RMI over sockets?
Which is an advantage of RMI over sockets?
정답: C
문제9
Which package contains classes used to create data collections, such as maps or queues?
Which package contains classes used to create data collections, such as maps or queues?
정답: E
문제10
Which two are true? (Choose two.)
Which two are true? (Choose two.)
정답: A,D
문제11
Why should package names in Java be unique?
Why should package names in Java be unique?
정답: D
문제12
You need to create a class Foo that will record the number of times the go() method is invoked on a particular instance of the class. Which solution correctly implements this goal?
You need to create a class Foo that will record the number of times the go() method is invoked on a particular instance of the class. Which solution correctly implements this goal?
정답: A
문제13
What is the role of a JSP author?
What is the role of a JSP author?
정답: A
문제14
Given:
1 1. interface A {
1 2. void someMethod();
1 3. }
1 4. class B implements A {
1 5. public void someMethod() { }
1 6. }
Which represents the "program to an interface" principle?
Given:
1 1. interface A {
1 2. void someMethod();
1 3. }
1 4. class B implements A {
1 5. public void someMethod() { }
1 6. }
Which represents the "program to an interface" principle?
정답: C
문제15
Given:
1 . class Test2 {
2 . static String setMessage(String str) {
3 . return str + "How are you doing?";
4 . }
5 .
6 . public static void main(String[] args) {
7 . String str = "Hello! ";
8 . str = setMessage(str);
9 . System.out.println("str : " + str);
1 0. }
1 1. }
What is the result?
Given:
1 . class Test2 {
2 . static String setMessage(String str) {
3 . return str + "How are you doing?";
4 . }
5 .
6 . public static void main(String[] args) {
7 . String str = "Hello! ";
8 . str = setMessage(str);
9 . System.out.println("str : " + str);
1 0. }
1 1. }
What is the result?
정답: E