English Русский Contacts Site map Add to favorites
Registration
Login
Master braindump list
New braindumps
Submit a dump
Get latest dump
braindumps.com.ua
flame
3COM (7)
Adobe (1)
BEA (1)
Checkpoint (22)
Cisco (20)
Citrix (21)
CIW (15)
Compaq (0)
CompTIA (51)
CWNA (2)
EMC (2)
Exin (4)
GEJOS (4)
HDI (1)
HP (4)
IBM (13)
Juniper (5)
Linux Prof Institute (LPI) (2)
Lotus (11)
Microsoft (2462)
Network Appliance (2)
Novell (16)
Oracle (423)
PLSQL (1)
PMI (5)
SAS (1)
Sun (87)
Teradata (4)
Login:
Password:
RSS feed

Contacts
Certification links
Links
Authorized user can see question and answers.
Please log in or sign up.

Exam question list:
Show all comments
Sun 310-056: Sun Certified Programmer for J2SE 5.0 Upgrade Exam
#11. Given:
  1. 12. public class Wow
  2. 13. public static void go(short n) {System.out.printIn(short);}
  3. 14. public static void go(short n) {System.out.printIn(“SHORT”);}
  4. 15. public static void go(short n) {System.out.printIn(“LONG”);}
  5. 16. public static void main(String [] args) {
  6. 17. Shorty = 6;
  7. 18. int z = 7;
  8. 19. go(y);
  9. 20. go(z);
  10. 21. }
  11. 22. }
What is the result?

Show comments for this question (0)
Add comments
Link to this question

#12. Given:
  1. 11. interface DeclareStuff {
  2. 12. public static final mt EASY = 3;
  3. 13. void doStuff(intt); }
  4. 14. public class TestDeclare implements DeclareStuff {
  5. 15. public static void main(String [] args) {
  6. 16. int x = 5;
  7. 17. new TestDeclare().doStuff(++x);
  8. 18. )
  9. 19. void doStuff(int s) {
  10. 20. s += EASY + ++s;
  11. 21. System.out.println(”s + s);
  12. 22. }
  13. 23. }
What is the result?

Show comments for this question (0)
Add comments
Link to this question

#13. Given:
  1. 1. interface DoStuff2 {
  2. 2. float getRange(int low, int high); }
  3. 3. 3.
  4. 4. interface DoMore {
  5. 5. float getAvg(int a, int b, mt c); }
  6. 6. 6.
  7. 7. abstract class DoAbstract implements DoStuff2, DoMore { }
  8. 8. 8.
  9. 9. class Dostuff implements Dostuff2 {
  10. 10. public float getRange(Intx, inty) { return 3.14f; } }
  11. 11. interface DoAII extends DoMore {
  12. 12. float getAvg(int a, int b, int c, int d); }
What is the result?

Show comments for this question (0)
Add comments
Link to this question

#14. A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command:
java games.cards.Poker
What allows the user to do this?

Show comments for this question (0)
Add comments
Link to this question

#15. Given:
  1. 11. public class Ball{
  2. 12. public enum Color { RED, GREEN, BLUE };
  3. 13. public void foo(){
  4. 14. //insert code here
  5. 15. { System.out.println(c); )
  6. 16. }
  7. 17. }
Which code inserted at line 14 causes the too method to print RED, GREEN, and BLUE?

Show comments for this question (0)
Add comments
Link to this question

#16. Given:
  1. 10. interface Foo {
  2. 11. int bar ();
  3. 12. }
  4. 13.
  5. 14. public class Beta {
  6. 15.
  7. 16. class A implements Foo {
  8. 17. public int bar( ) { return 1; }
  9. 18. }
  10. 19.
  11. 20. public int fubar( Foo foo ) { return
  12. foo.bar( ) ; }
  13. 21.
  14. 22. public void testFoo( ) {
  15. 23.
  16. 24. class A implements Foo {
  17. 25. public int bar() { return 2; }
  18. 26. }
  19. 27.
  20. 28. System.out.printIn( fubar( new A( ) ) );
  21. 29. }
  22. 30.
  23. 31. pubic static void main( String[] argv
  24. ) }
  25. 32. New Beta(). testFoo();
  26. 33. }
  27. 34. }
Which three statements are true? (Choose three.)

Show comments for this question (0)
Add comments
Link to this question

#17. Given:
  1. 10. class One {
  2. 11. public One() { System.out.print(1); }
  3. 12. }
  4. 13. class Two extends One {
  5. 14. public Two() { System.out.print(2); }
  6. 15. }
  7. 16. class Three extends Two {
  8. 17. public Three() { System.out.print(3); }
  9. 18. }
  10. 19. public class Numbers{
  11. 20. public static void main( String[] argv)
  12. { new Three(); }
  13. 21. ]
What is the result when this code is executed?

Show comments for this question (0)
Add comments
Link to this question

#18. Given:
  1. 1. interface TestA { String toString(); }
  2. 2. public class Test {
  3. 3. public static void main(String[] args) {
  4. 4. System.out.println(new TestA() {
  5. 5. public String toString() { return “test”; }
  6. 6. });
  7. 7. }
  8. 8. }
What is the result?

Show comments for this question (0)
Add comments
Link to this question

#19. Given:
  1. 1. public interface A {
  2. 2. public void doSomething(String thing);
  3. 3. }
  4. 1. public class AImpI implements A {
  5. 2. public void doSomething(String msg) { }
  6. 3. }
  7. 1. public class B
  8. 2. public A doit( ) {
  9. 3. // more code here
  10. 4. }
  11. 5.
  12. 6. public execute String execute() {
  13. 7. // more code here
  14. 8. }
  15. 9. }
  16. 1. public class C extends B {
  17. 2. public AImpI doit( ) {
  18. 3. // more code here
  19. 4. }
  20. 5.
  21. 6. public String execute() {
  22. 7. // more code here
  23. 8. }
  24. 9. }
  25. 1. public object execute() {
  26. 2. public AImpI doit() {
  27. 3. // more code here
  28. 4. }
  29. 5.
  30. 6. public Object execute( ) {
  31. 7. //more code here
  32. 8. }
  33. 9. }
Which statement is true about the classes and interfaces in the exhibit?

Show comments for this question (0)
Add comments
Link to this question

#20. Given:
  1. 11. Class Person {
  2. 12. String name = “No name” ;
  3. 13. Public Person(String nm) { name = nm; }
  4. 14. }
  5. 15.
  6. 16. Class Employee extends Person {
  7. 17. String empID = “0000”;
  8. 18. public Employees(String id) { empID =
  9. id; }
  10. 19. }
  11. 20.
  12. 21. public class EmployeeTest {
  13. 22. public static void main(String[ ] args)
  14. {
  15. 23. Employee e = new Employee(4321);
  16. 24. System.out.printIn(e.empID);
  17. 25. }
  18. 26. }
What is the result?

Show comments for this question (0)
Add comments
Link to this question


 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] ... [12 
Up ^ gen. 0.359 Server date 05:39 10-01-2009 Developed by Zip © 2006 Up ^
Forum
Start online exam simulation
Master braindump