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
#31. Which two describe benefits of encapsulation? (Choose two.)

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

#32. Given:
  1. 1. class Book {
  2. 2. public String title;
  3. 3.
  4. 4. public void setTitle(String title) {
  5. 5. if (checkTitle(title)) this.title = title;
  6. 6. }
  7. 7. public String getTitle() {
  8. 8. return title;
  9. 9. }
  10. 10. private boolean checkTitle(String newTitle) {
  11. 11. // code that verifies proposed title change
  12. 12. }
  13. 13. }
Which two are true? (Choose two.)

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

#33. Given:
  1. 1. public class Boat{
  2. 2. // insert code here
  3. 3. public void setGas(int v){
  4. 4. gas = v;
  5. 5. }
  6. 6. }
Which, inserted at line 2, is valid and demonstrates encapsulation?

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

#34. Which two are benefits when appropriately using polymorphism? (Choose two.)

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

#35. Given concrete class B is a subclass of concrete class A, and class A implements interface C, which two are examples of polymorphism? (Choose two.)

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

#36. Given:
  1. 1. // insert code here
  2. 2. void play();
  3. 3. void stop();
  4. 4. }
  5. 5. // insert code here
  6. 6. public void play() { }
  7. 7. public void stop() { }
  8. 8. }
Which, inserted at lines 1 and 5, allows the code to compile?

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

#37. Which two are true? (Choose two.)

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

#38. Given:
  1. 11. class A {
  2. 12. public void methodX(int i) { /* some code */ }
  3. 13. public String methodY(String s) { /* some code */ }
  4. 14. }
  5. 15. class B extends A {
  6. 16. public void methodX(int i) { /* some code */ }
  7. 17. public String methodX(String s) { /* some code */ }
  8. 18. public String methodY(String s) { /* some code */ }
  9. 19. }
Which two are true? (Choose two.)

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

#39. Given:
  1. 11. interface A {
  2. 12. void someMethod();
  3. 13. }
  4. 14. class B implements A {
  5. 15. public void someMethod() { }
  6. 16. }
Which represents the "program to an interface" principle?

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

#40. Which two are represented in a UML class diagram? (Choose two.)

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.187 Server date 06:42 10-01-2009 Developed by Zip © 2006 Up ^
Forum
Start online exam simulation
Master braindump