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-035: Sun Certified Programmer for Java 2 Platform 1.4
#21. Given:
  1. 11. boolean bool = true;
  2. 12. if(bool = false) {
  3. 13. System.out.println(“a”);
  4. 14. } else if (bool) {
  5. 15. System.out.println(“c”);
  6. 16. } else if (!bool) {
  7. 17. System.out.println(“c”);
  8. 18. } else {
  9. 19. System.out.println(“d”);
  10. 20. }
What is the result?

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

#22. Which statement is true?

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

#23. Which statement is true about assertion in the Java programming language?

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

#24. Given:
  1. 1. package foo;
  2. 2.
  3. 3. import java.util.Vector;
  4. 4.
  5. 5. private class MyVector extends Vector {
  6. 6. int i = 1;
  7. 7. public MyVector() {
  8. 8. i = 2;
  9. 9. }
  10. 10. }
  11. 11.
  12. 12. public class MyNewVector extends MyVector {
  13. 13. public MyNewVector() {
  14. 14. i = 4;
  15. 15. }
  16. 16. public static void main(String args[]) {
  17. 17. MyVector v = new MyNewVector();
  18. 18. }
  19. 19. }
What is the result?

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

#25. Given:
  1. 1. class TestSuper {
  2. 2. TestSuper(int i) { }
  3. 3. }
  4. 4. class TestSub extends TestSuper{ }
  5. 5. class TestAll {
  6. 6. public static void main (String [] args) {
  7. 7. new TestSub();
  8. 8. }
  9. 9. }
Which is true?

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

#26. Given:
  1. 10. int i = 0;
  2. 11. for (; i <4; i += 2) {
  3. 12. System.out.print(i + “”);
  4. 13. }
  5. 14. System.out.println(i);
What is the result?

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

#27. Given:
  1. 1. public class SwitchTest {
  2. 2. public static void main(String[] args) {
  3. 3. System.out.println(“value = “ + switchIt(4));
  4. 4. }
  5. 5. public static int switchIt(int x) {
  6. 6. int j = 1;
  7. 7. switch (x) {
  8. 8. case 1: j++;
  9. 9. case 2: j++;
  10. 10. case 3: j++;
  11. 11. case 4: j++;
  12. 12. case 5: j++;
  13. 13. default: j++;
  14. 14. }
  15. 15. return j + x;
  16. 16. }
  17. 17. }
What is the result?

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

#28. Which three form part of correct array declarations? (Choose three)

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

#29. Given:
  1. 1. public class Foo {
  2. 2. public static void main(String[] args) {
  3. 3. try {
  4. 4. return;
  5. 5. } finally {
  6. 6. System.out.println(Finally);
  7. 7. }
  8. 8. }
  9. 9. }
What is the result?

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

#30. Given: ClassOne.java:
  1. 1. package com.abe.pkg1;
  2. 2. public class ClassOne {
  3. 3. private char var = ‘a’;
  4. 4. char getVar() { return var; }
  5. 5. }
ClassTest.java:
  1. 1. package com.abe.pkg2;
  2. 2. import com.abc.pkg1.ClassOne;
  3. 3. public class ClassTest extends ClassOne {
  4. 4. public static void main(String[] args) {
  5. 5. char a = new ClassOne().getVar();
  6. 6. char b = new ClassTest().getVar();
  7. 7. }
  8. 8. }
What is the result?

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