Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
132Activity
0 of .
Results for:
No results containing your search query
P. 1
SCJP

SCJP

Ratings: (0)|Views: 862 |Likes:
Published by api-19479804

More info:

Published by: api-19479804 on Nov 21, 2009
Copyright:Attribution Non-commercial

Availability:

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

03/18/2014

pdf

text

original

Sun 310-055
Sun Certified Programmer for the Java 2 Platform.SE 5.0
362 Q&A
Version 2.29
PDF Creator - PDF4Free v2.0
http://www.pdf4free.com
www.TestsNow.com
- 2 -
I mportant Note, Please Read Carefully
Other TestNows products
A) Offline Testing engine
Use the offline Testing engine product topractice the questions in an exam environment.
Build a foundation of knowledge which will be useful also after passing the exam.
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 TestNows and update 3-4 days before the scheduled exam date.

Here is the procedure to get the latest version:
1.Go towww.TestNows.com

2.Click onLog 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

If you spot a possible improvement then please let us know. We always interested in improving product quality.
Feedback should be send to feedback@TestNows.com. You should include the following: Exam number,
version, page number, question number, and your login Email.

Our experts will answer your mail promptly.
Copyright
Each iPAD file is a green exe file. if we find out that a particular iPAD Viewer file is being distributed by you,
TestNows reserves the right to take legal action against you according to the International Copyright Laws.
Explanations
This product does not include explanations at the moment. If you are interested in providing explanations for this
exam, please contact feedback@TestNows.com.
PDF Creator - PDF4Free v2.0
http://www.pdf4free.com
www.TestsNow.com
- 3 -
www.TestNows.com Q: 1 Given:
11. public class Person {
12. privateStringname, comment;
13. privateint age;
14. publicPerson(Stringn,int a,Stringc){
15. name = n; age = a; comment = c;
16 . }
17. publicbooleanequals(Object o){
18. if (! (o instanceof Person)) return false;
19, Person p = (Person)o;
20. returnage==p.age&&name.equals(p.name);
21 . }
22.}
What is the appropriate definition of the hashCode method in class Person?
A. returnsuper.hashCode();

B. return name.hashCode() + age * 7;
C. return name.hashCode() + comment.hashCode() / 2;
D. return name.hashCode() + comment.hashCode() / 2 - age * 3;

Answer: B
www.TestNows.com Q: 2 Given:
34. HashM ap props= new HashM ap();
35. props.put("key45", "some value");

36. props.put(" key12" , " some other value"); 37. props.put(" key39" , " yet another value"); 38. Set s = props.keySet();

39. // insert code here
What, inserted at line 39, will sort the keys in the props HashM ap?
A. Arrays.sort(s);
B. s = new TreeSet(s);
C. Collections.sort(s);
D. s = new SortedSet(s);
PDF Creator - PDF4Free v2.0
http://www.pdf4free.com

Activity (132)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Anantha Raman liked this
Xuyang Zhang liked this
aidenandandrew liked this
Suvarna Bk liked this
shaffic liked this
adamnevski liked this
faisal_csedu liked this

You're Reading a Free Preview

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