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-035: Sun Certified Programmer for Java 2 Platform 1.4
#1. Given:
  1. 1. public class Test {
  2. 2. public static void main(String args[]) {
  3. 3. class Foo {
  4. 4. public int i = 3;
  5. 5. }
  6. 6. Object o = (Object)new Foo();
  7. 7. Foo foo = (Foo)o;
  8. 8. System.out.println(“i = “ + foo.i);
  9. 9. }
  10. 10. }
What is the result?

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

#2. Which two cause a compiler error? (Choose two)

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

#3. Given:
  1. 11. int i =1,j =10;
  2. 12. do {
  3. 13. if(i++> --j) {
  4. 14. continue;
  5. 15. }
  6. 16. } while (i <5);
  7. 17. System.out.println(“i = “ +i+ “and j = “+j);
What is the result?

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

#4. Given:
  1. 1. class Test {
  2. 2. private Demo d;
  3. 3. void start() {
  4. 4. d = new Demo();
  5. 5. this.takeDemo(d);
  6. 6. }
  7. 7.
  8. 8. void takeDemo(Demo demo) {
  9. 9. demo = null;
  10. 10. demo = new Demo();
  11. 11. }
  12. 12. }
When is the Demo object, created on line 3, eligible for garbage collection?

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

#5. Given:
  1. 1. interface Animal {
  2. 2. void soundOff();
  3. 3. }
  4. 4.
  5. 5. class Elephant implements Animal {
  6. 6. public void soundOff() {
  7. 7. System.out.println(“Trumpet”);
  8. 8. }
  9. 9. }
  10. 10.
  11. 11. class Lion implements Animal {
  12. 12. public void soundOff() {
  13. 13. System.out.println(“Roar”);
  14. 14. }
  15. 15. }
  16. 16.
  17. 17. class Alpha1 {
  18. 18. static Animal get( String choice ) {
  19. 19. if ( choice.equalsIgnoreCase( “meat eater” )) {
  20. 20. return new Lion();
  21. 21. } else {
  22. 22. return new Elephant();
  23. 23. }
  24. 24. }
  25. 25. }
Which compiles?

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

#6. Which statement is true?

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

#7. Given:
  1. 1. class A {
  2. 2. A() { }
  3. 3. }
  4. 4.
  5. 5. class B extends A {
  6. 6. }
Which two statements are true? (Choose two)

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

#8. Given:
  1. 11. int i = 1,j = 10;
  2. 12. do {
  3. 13. if(i>j) {
  4. 14. break;
  5. 15. }
  6. 16. j--;
  7. 17. } while (++i <5);
  8. 18. System.out.println(“i =” +i+” and j = “+j);
What is the result?

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

#9. Which statement is true?

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

#10. You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?

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


 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] ... [29 
Up ^ gen. 0.203 Server date 05:39 02-12-2008 Developed by Zip © 2006 Up ^
Forum
Start online exam simulation
Master braindump
User braindumps