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-019: Sun Certified Associate for the Java Platform, Standard Edition
#81. Which three can be included in an interface declaration? (Choose three.)

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

#82. Given:
interface Writable { }
interface Erasable { }
Which three are valid? (Choose three.)

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

#83. Which is a valid definition of an interface called Transportable given another valid interface, Movable?

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

#84. Given:
  1. 1. interface Movable {
  2. 2. void move();
  3. 3. void stop();
  4. 4. }
Which is valid?

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

#85. Given:
  1. 11. class Automobile {
  2. 12. public void drive() { System.out.print("go forward "); }
  3. 13. }
  4. 14. class Ferrari extends Automobile {
  5. 15. public void drive () { System.out.print("go fast "); }
  6. 16. }
  7. 17. public class Driver {
  8. 18. public static void main(String[] args) {
  9. 19. Automobile[] autos = { new Automobile(), new Ferrari() };
  10. 20. for (int x = 0; x < autos.length; x++)
  11. 21. autos[x].drive();
  12. 22. }
  13. 23. }
What is the result?

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

#86. Given:
  1. 1. interface Pet { }
  2. 2. class Dog implements Pet { }
  3. 3. class Beagle extends Dog { }
Which three are valid? (Choose three.)

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

#87. Given:
  1. 3. interface Pet {
  2. 4. void eat();
  3. 5. }
  4. 6. class Dog implements Pet { public void eat() { } }
  5. 7. class Beagle extends Dog { public void eat() { } }
Which demonstrates the "program to an interface" principle?

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

#88. Which is a valid abstract class?

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

#89. Exhibit:
  1. 1. interface Drinkable {
  2. 2. void drink();
  3. 3. }
  4. 1. class Tea implements Drinkable {
  5. 2. public void drink() { System.out.print("Drinking tea..."); }
  6. 3. }
  7. 1. class Coffee implements Drinkable {
  8. 2. public void drink() { System.out.print("Drinking coffee..."); }
  9. 3. }
  10. 1. public class TestDrink {
  11. 2. static boolean teaFlag;
  12. 3. public static Drinkable getDrinkable() {
  13. 4. if (teaFlag) {
  14. 5. return new Tea();
  15. 6. } else {
  16. 7. return new Coffee();
  17. 8. }
  18. 9. }
  19. 10. // more code that sets the value of the teaFlag boolean
  20. 11. }
  21. 1. public class DrinkableFactory {
  22. 2. static boolean teaFlag;
  23. 3. public static Drinkable getDrinkable(){
  24. 4. if (teaFlag) {
  25. 5. return new Tea();
  26. 6. } else {
  27. 7. return new Coffee();
  28. 8. }
  29. 9. }
  30. 10. // more code that sets the value of the teaFlag boolean
  31. 11. }
Which, inserted at line 3 of the TestDrink class, demonstrates the "program to an interface" principle?

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

#90. Given:
  1. 6. int time = 12;
  2. 7. if ( time < 12 ) {
  3. 8. System.out.println("Good morning");
  4. 9. }
  5. 10. // insert code here
  6. 11. System.out.println("Good afternoon");
  7. 12. }
  8. 13. else if ( time >= 18 ) {
  9. 14. System.out.println("Good evening");
  10. 15. }
Which three, inserted independently at line 10, produce the output Good afternoon? (Choose three.)

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


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