Read without ads and support Scribd by becoming a Scribd Premium Reader.
 
Sun Certified Programmer for the Java 2Platform, StandardExam 310-055
di
i
on
.0
©
2003- 2004 Test Killer,LTD All Rights Reserved
 
Co
n
r
a
t
u
la
tio
n
s
!!
You have purchased aTestkille
r
Ltd. Study Guide.This study guideis a complete collection of questions that have been directly taken fromthe real exams and answers that have been researched and verified byour professionalexpert team. Studyand memorize the following questions and answers for approximately15 to 20 hoursand ou willbe re ared to take the exams. We uarantee it!Remember, average study time is 15 to 20 hours and then you are ready!!!
GOO
D
L
U
CK
!
D
I
S
CL
A
I
M
ER
This study guide and/or materialis not sponsored by, endorsed byor affiliated withMicrosoft, Cisco, Oracle, Citrix, CIW, CheckPoint, Novell, Sun/Solaris, CWNA, LPI,ISC, etc. All trademarks are properties of their respective owners
.
G
ua
r
an
teeIfyou use this study guide correctlyand stillfail the exam, send a scanned copy ofyourofficial score notice at:support@troytec.comWe willgladly refund the cost of this study guide. However, you will not need thisuarantee if ou follow the above instructions.
T
his
m
a
te
r
ia
l is p
r
otected b
y
cop
y
r
ight l
a
w
a
nd inte
r
n
a
tion
a
l t
r
e
a
ties. Un
a
utho
r
i
z
ed
r
ep
r
oduction o
r
dist
r
ibution o
f t
his
m
a
te
r
i
a
l, o
r
a
n
y
po
r
tion the
r
eo
f,
m
a
y
r
esult in se
v
e
r
ec
iv
il
a
nd c
r
im
in
a
l pen
a
lties,
a
nd
w
ill be p
r
osecuted to the
m
a
x
i
m
u
m
e
x
tent possible unde
r
la
w
.
 
Question 1
Given:11. public interface Status {12. /* insert code here */ int MY_VALUE = 10;13. }Which three are valid on line 12? (Choose three.)A. finalB. staticC. nativeD. publicE. privateF. abstractG. protected
Answer: ABDQuestion 2
Given:10. public class Bar {11.static void foo(int...x) {12. // insert code here13. }14. }Which two code fragments, inserted independently at line 12, will allowthe class to compile? (Choose two.)A. foreach(x) System.out.println(z);B. for(int z : x) System.out.println(z);C. while( x.hasNext()) System.out.println( x.next());D. for( int i=0; i< x.length; i++ ) System.out.println(x[i]);
Answer: BDQuestion 3
Given:11. public class Test {12. public static void main(String [] args) {13. int x =
5;
14. boolean b1 = true;15. boolean b2 = false;16.17.if((x==4) && !b2)18. System.out.print(”l “);19. System.out.print(”2 “);20. if ((b2 = true) && b1)
Search History:
Searching...
Result 00 of 00
00 results for result for
  • p.
  • Notes
    Load more