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
#71. Given:
  1. 11. public class Employee {
  2. 12. public String name;
  3. 13. // insert code here
  4. 14.
  5. 15. public String getName() {
  6. 16. return name;
  7. 17. }
  8. 18.
  9. 19. public int getSalary() {
  10. 20. return salary;
  11. 21. }
  12. 22. }
Which, when inserted at line 13, allows another class to get the value of the salary variable, but NOT change the value of the salary variable?

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

#72. Given:
  1. 1. public abstract class Wow {
  2. 2. private int wow;
  3. 3. public Wow(int wow) {
  4. 4. this.wow = wow;
  5. 5. }
  6. 6. public void wow() { }
  7. 7. private void wowza() { }
  8. 8. }
Which is true about the class Wow?

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

#73. Given:
  1. 1. interface A { }
  2. 2. interface B { void b(); }
  3. 3. interface C { public void c(); }
  4. 4. abstract class D implements A,B,C { }
  5. 5. class E extends D {
  6. 6. void b() { }
  7. 7. public void c() { }
  8. 8. }
Which is true?

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

#74. Given:
  1. 1. interface Flyer {
  2. 2. void takeOff();
  3. 3. boolean land();
  4. 4. }
  5. 5. class Airplane implements Flyer {
  6. 6. public void takeOff() { /* some code */ }
  7. 7. // insert code here
  8. 8. return true;
  9. 9. }
  10. 10. }
Which, inserted at line 8, correctly implements the interface?

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

#75. Given:
  1. 1. abstract class A {}
  2. 2. class B {}
  3. 3. interface C {}
  4. 4. interface D {}
  5. 5. // insert code here
Which, inserted at line 5, results in a compilation failure?

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

#76. Given:
  1. 1. class X {
  2. 2. private Y y;
  3. 3. public X(Y y) { this.y = y; }
  4. 4. }
  5. 5. class Y {
  6. 6. private X x;
  7. 7. public Y() { }
  8. 8. public Y(X x) { this.x = x; }
  9. 9. }
The instance variable y is intended to represent the composition relationship "X is composed of Y."
Which code correctly maintains this meaning?

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

#77. Given:
  1. 5. class Foo {
  2. 6. public int fooInt = 6;
  3. 7. }
  4. 8.
  5. 9. public class Bar {
  6. 10. static int myInt = 7;
  7. 11. public static void main(String [] args) {
  8. 12. // insert code here
  9. 13. System.out.println("myInt = " + myInt);
  10. 14. }
  11. 15. }
Which, inserted at line 12, creates the output myInt = 42?

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

#78. Exhibit:

Which correctly implements the relationship shown in the diagram?

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

#79. Exhibit:

Which correctly implements the relationships shown in the diagram?

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

#80. Given:
  1. 13. class Stone {
  2. 14. String color = "white";
  3. 15. }
  4. 16.
  5. 17. public class ManyStones {
  6. 18. Stone[] stones = {new Stone(), new Stone(), new Stone()};
  7. 19. }
Which is true?

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