1 / 44
文档名称:

Java Certification - SCWCD Exam - ActualTests Sun 310-081.pdf

格式:pdf   页数:44
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

Java Certification - SCWCD Exam - ActualTests Sun 310-081.pdf

上传人:bolee65 2014/8/6 文件大小:0 KB

下载得到文件列表

Java Certification - SCWCD Exam - ActualTests Sun 310-081.pdf

文档介绍

文档介绍:Exam : 310-081

Title : Sun Certified ponent Developer

for the Java 2 Platform, Enterprise Edition

Ver : 10-19-04
310-081

Total Question 108

QUESTION 1
Given:
AnInterface is an interface.
AnAdapter0 is a non-abstract, non-final class with a zero argument constructor.
An Adapterl is a non-abstract, non-final class without a zero argument constructor, but
with a constructor that takes one int argument.
Which two construct an anonymous inner class? (Choose two.)

A. AnAdapter1 aa = new AnAdapter1 () {}
B. AnAdapter0 aa = new AnAdapter0 () {}
C. AnAdapter0 aa = new AnAdapter0 (5) {}
D. AnAdapter1 aa = new AnAdapter1 (5) {}
E. AnInterface ai = new Anlnterface (5)) {

Answer: BD

QUESTION 2
1. class A {
3. public String to String() {
4. return "4";
5. }
6. }
7. class B extends A {
8. public String toString() {
9. return () + "3";
10. }
11. }
12. public class Test {
13. public static void main (String[] args) {
14. (new B());
15. }
16. }
What is the result?

A. Compilation eeds and 4 is printed.
B. Compilation ............... is printed.
C. An error on line 9 pilation to fail.
D. An error on line 14 pilation to fail.
E. Compilation eeds but an exception is thrown at line 9.

Answer: B

- The Power of Knowing
310-081

QUESTION 3
Given:
1. public class Method Over {
2. public void set Var (int a, int b, float c) {
3. }
4. }
Which two overload the set Var method? (Choose two.)

A. private void set Var(int a, float c, int b) {}
B. protected void set Var(int a, int b, float c) {}
C. public int set Var(int a, float c, int b) {return a:}
D. public int set Var(int a, int b, float c) {return a:}
E. protected float set Var(int a, int b, float c) {return c:}

Answer: AC

QUESTION 4
1. class A {
2. public byte file Number () {
3. return l;
4. }
5. }
6.
7. Class B extends A {