Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
SCJP Exam - Sun Certified Programmer for Java - Questions Te

SCJP Exam - Sun Certified Programmer for Java - Questions Te

Ratings: (0)|Views: 11|Likes:
Published by api-3701880

More info:

Published by: api-3701880 on Oct 16, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





Sun Certified Programmer
for Java 2 Platform 1.4
Version 3.0
310 - 035
Leading the way in IT testing and certification tools,www.t e stk i ng. co m
-2 -
Important Note
Please Read Carefully
Study Tips
This product will provide you questions and answers along with detailed explanations

carefully compiled and written by our experts. Try to understand the concepts behind the questions instead of cramming the questions. Go through the entire document at least twice so that you make sure that you are not missing anything.

Latest Version

We are constantly reviewing our products. New material is added and old material is revised. Free updates are available for 90 days after the purchase. You should check your member zone at TestKing an update 3-4 days before the scheduled exam date.

Here is the procedure to get the latest version:
1. Go towww.testki ng.com
2. Click on Member zone/Log in
3. The latest versions of all purchased products are downloadable from here. Just click
the links.
For most updates, it is enough just to print the new questions at the end of the new version,
not the whole document.
Feedback on specific questions should be send to feedback@testking.com. You should state:
Exam number and version, question number, and login ID.
Our experts will answer your mail promptly.

Each pdf file contains a unique serial number associated with your particular name and contact information for security purposes. So if we find out that a particular pdf file is being distributed by you, TestKing reserves the right to take legal action against you according to the International Copyright Laws.

310 - 035
Leading the way in IT testing and certification tools,www.t e stk i ng. co m
-3 -
Note: Major update with additional questions late May/early June.

1. public class Test {
2. public static void main(String args[]) {
3. class Foo {

public int i = 3;
5. }
6. Object o = (Object)new Foo();
7. Foo foo = (Foo)o;
8. System.out.println(\u201ci = \u201c + foo.i);
9. }
10. }

What is the result?
A.i = 3
B. Compilation fails.
C. A ClassCastException is thrown at line 6.
D. A ClassCastException is thrown at line 7.
Answer: A
Which two cause a compiler error? (Choose two)

A.float[] = new float(3);
B.float f2[] = new float[];
C.float[] f1 = new float[3];
D.float f3[] = new float[3];
E.float f5[] = { 1.0f, 2.0f, 2.0f };
F.float f4[] = new float[] { 1.0f. 2.0f. 3.0f};

Answer: A, B

11. int i =1,j =10;
12. do {
13. if(i++> --j) {
14. continue;
15. }

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->