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
#41. Given:
  1. 1. public class X {
  2. 2. public static void main(String [] args) {
  3. 3. try {
  4. 4. badMethod();
  5. 5. System.out.print(“A”);
  6. 6. }
  7. 7. catch (Exception ex) {
  8. 8. System.out.print(“B”);
  9. 9. }
  10. 10. finally {
  11. 11. System.out.print(“C”);
  12. 12. }
  13. 13. System.out.print(“D”);
  14. 14. }
  15. 15. public static void badMethod() {
  16. 16. throw new RuntimeException();
  17. 17. }
  18. 18. }
What is the result?

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

#42. Given:
  1. 1. class TestA {
  2. 2. TestB b;
  3. 3. TestA() {
  4. 4. b = new TestB(this);
  5. 5. }
  6. 6. }
  7. 7. class TestB {
  8. 8. TestA a;
  9. 9. TestB(TestA a) {
  10. 10. this.a = a;
  11. 11. }
  12. 12. }
  13. 13. class TestAll {
  14. 14. public static void main (String args[]) {
  15. 15. new TestAll().makeThings();
  16. 16. // ...code continues on
  17. 17. }
  18. 18. void makeThings() {
  19. 19. TestA test = new TestA();
  20. 20. }
  21. 21. }
Which two statements are true after line 15, before main completes? (Choose two)

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

#43. Given:
  1. 11. for (int i =0; i <3; i++) {
  2. 12. switch(i) {
  3. 13. case 0: break;
  4. 14. case 1: System.out.print(“one “);
  5. 15. case 2: System.out.print(“two “);
  6. 16. case 3: System.out.print(“three “);
  7. 17. }
  8. 18. }
  9. 19. System.out.println(“done”);
What is the result?

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

#44. Which three statements are true? (Choose three)

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

#45. Which three statements are true? (Choose three)

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

#46. Which statement is true?

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

#47. Given:
  1. 1. class A {
  2. 2. final public int method1(int a, int b) {return 0; }
  3. 3. }
  4. 4. class B extends A {
  5. 5. public int method1(int a, int b) { return 1; }
  6. 6. }
  7. 7. public class Test {
  8. 8. public static void main(Strings args[]) {
  9. 9. B b;
  10. 10. System.out.println(“x = “ + b.method1(0, 1));
  11. 11. }
  12. 12. }
What is the result?

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

#48. Given:
  1. 10. public Object m() {
  2. 11. Object o = new Float(3.14F);
  3. 12. Object [] oa = new Object[1];
  4. 13. oa[0] = o;
  5. 14. o = null;
  6. 15. oa[0] = null;
  7. 16. print 'return 0';
  8. 17. }
When is the Float object, created in line 11, eligible for garbage collection?

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

#49. Given:
  1. 11. public void test(int x) {
  2. 12. int odd = x%2;
  3. 13. if (odd) {
  4. 14. System.out.println(“odd);
  5. 15. } else {
  6. 16. System.out.println(“even”);
  7. 17. }
  8. 18. }
Which statement is true?

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

#50. Which two create an instance of an array? (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] ... [29 
Up ^ gen. 0.206 Server date 06:10 10-01-2009 Developed by Zip © 2006 Up ^
Forum
Start online exam simulation
Master braindump
User braindumps