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 (17)
CIW (15)
Compaq (0)
CompTIA (51)
CWNA (2)
EMC (2)
Exin (4)
GEJOS (4)
HDI (1)
HP (4)
IBM (13)
Juniper (1)
Linux Prof Institute (LPI) (2)
Lotus (11)
Microsoft (2461)
Network Appliance (2)
Novell (16)
Oracle (413)
PLSQL (1)
PMI (4)
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
#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?

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

#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?

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

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

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

#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.)

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

#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?

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

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

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

#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?

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

#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?

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

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

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

#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?

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.258 Server date 15:58 02-12-2008 Developed by Zip © 2006 Up ^
Forum
Start online exam simulation
Master braindump