Contacts Site map Add to favorites Bookmark and Share
Registration
Login
Master braindump list
New braindumps
Submit a dump
Get latest dump
Introduce us
braindumps.com.ua
flame
3COM
Adobe
BEA
Checkpoint
Cisco
Citrix
CIW
Compaq
CompTIA
CWNA
EMC
Exin
GEJOS
HDI
HP
IBM
Juniper
Linux Prof Institute (LPI)
Lotus
Microsoft
Network Appliance
Novell
Oracle
PLSQL
PMI
SAS
Sun
Teradata
Login:
Password:
RSS feed

Contacts
Certification links
Links
Authorized user can see question and answers.
Please log in or sign up.
Help Braindumps.com.ua to be introduced.

Sun 310-056: Sun Certified Programmer for J2SE 5.0 Upgrade Exam

#1. Given:
  1. 1. interface A { public void aMethod(); }
  2. 2. interface B { public void aMethod(); }
  3. 3. interface C extends A,B { public void aMethod(); }
  4. 4. class D implements B {
  5. 5. }
  6. 6. Class E extends D implements C {
  7. 7. public void aMethod() {}
  8. 8. public void bMethod() {}
  9. 9. public void cMethod() {}
  10. 10. }
What is the result?

#2. Given:
  1. 20. public class CreditCard {
  2. 21.
  3. 22. private Sting cardID;
  4. 23. private Integer limit;
  5. 24. public String ownerName;
  6. 25.
  7. 26. public voicd setCardInformation(String cardID,
  8. 27. . String ownerName,
  9. 28. Integer limit) {
  10. 29. this.cardID = cardID;
  11. 30. this.ownerName = ownerName;
  12. 31. this.limit = limit;
  13. 32. }
  14. 33. }
Which statement is true?

#3. Which two statements are true? (Choose two.)

#4. Given:
  1. 1. Public class Car {
  2. 2. private int wheelCount;
  3. 3. private Sting vin:
  4. 4. public Car (String vin) {
  5. 5. this.vin = vin;
  6. 6. this.wheelCount = 4;
  7. 7. }
  8. 8. public String drive() {
  9. 9. return “zoom-zoom” ;
  10. 10. }
  11. 11. public String getInfo() {
  12. 12. return “VIN: ‘ + vin + “ wheels: “ +
  13. wheelCount;
  14. 13. }
  15. 14. }
What two must the programmer do to correct the compilation errors? (Choose two.)

#5. Given:
  1. 1. class ClassA {
  2. 2. public int numberOfInstances;
  3. 3. protected ClassA(int numberOfInstances) {
  4. 4. this.numberOfInstances = number OfInstances;
  5. 5. }
  6. 6. }
  7. 7. public class ExtendedA extends ClassA {
  8. 8. private ExtendedA(int numberOfInstances) {
  9. 9. super(numberOfInstances);
  10. 10. }
  11. 11. public static void main(String[] args) {
  12. 12. ExtendedA ext = new ExtendedA(420);
  13. 13. System.out.pint(ext. numberOfInstances);
  14. 14. }
  15. 15. }
Which statement is true?

#6. Which two code fragments will execute the method doStuff() in a separate thread? (Choose two.)

#7. Given:
  1. 10. public class starter extends thread {
  2. 11. private int x = 2;
  3. 12. public static void main(String[] args)
  4. throws Exception {
  5. 13. new Starter () .makeItSo();
  6. 14. }
  7. 15. public Starter() {
  8. 16. x = 5;
  9. 17. start();
  10. 18. }
  11. 19. public void makeItSo() throws
  12. 20. Join();
  13. 21. x = x -1;
  14. 22. System.out.printIn(x) ;
  15. 23. }
  16. 24. public void run() { x *= 2; }
  17. 25. }
What is the output if the main() method is run?

#8. Given a valid DateFormat object named df, and
  1. 16. Date d = new date(0L);
  2. 17. String ds = “December 15, 2004
  3. 18. //insert code here
What updates d’s values with the date represented by ds?

#9. Which three statements concerning the use of the java.io.Serializable interface are true? (Choose three.)

#10. Given :
  1. 1. public class TestString3 {
  2. 2. public static valid main(String[] args) {
  3. 3. //insert code here
  4. 4. System.out.printIn(s);
  5. 5. }
  6. 6. }
Which two code fragements, inserted independently at line3, generate the ourtput 4247?


 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] ... [12 
Up ^ gen. 0.297 Server date 22:48 10-03-2010 Developed by Zip © 2006 Up ^
310-056 certification
310-056 simulation
310-056 master dump
310-056 forum