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
#31. Given:
  1. 1. public class Alpha1 {
  2. 2. public static void main( String[] args ) {
  3. 3. boolean flag; int i=0;
  4. 5. do {
  5. 6. flag = false;
  6. 7. System.out.println( i++ );
  7. 8. flag = i < 10;
  8. 9. continue;
  9. 10. } while ( (flag)? true:false );
  10. 11. }
  11. 12. }
What is the result?

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

#32. Given:
  1. 1. package foo;
  2. 2.
  3. 3. import java.util.Vector;
  4. 4.
  5. 5. protected class MyVector Vector {
  6. 6. init 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

#33. Given:
  1. 1. class Super {
  2. 2. public Integer getLenght() { return new Integer(4); }
  3. 3. }
  4. 4.
  5. 5. public class Sub extends Super {
  6. 6. public Long GetLenght() { return new Long(5); }
  7. 7.
  8. 8. public static void main(String[] args) {
  9. 9. Super sooper = new Super();
  10. 10. Sub sub = new Sub();
  11. 11. System.out.println(
  12. 12. sooper.getLenght().toString() + “,” +
  13. 13. sub.getLenght().toString() );
  14. 14. }
  15. 15. }
What is the output?

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

#34. 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. return oa[0];
  7. 16. }
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

#35. Given:
  1. 1. class Base {
  2. 2. Base() { System.out.print(“Base”); }
  3. 3. }
  4. 4. public class Alpha extends Base {
  5. 5. public static void main( String[] args ) {
  6. 6. new Alpha();
  7. 7. new Base();
  8. 8. }
  9. 9. }
What is the result?

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

#36. Given:
  1. 11. int i = 1,j = -1;
  2. 12. switch (i) {
  3. 13. case 0, 1:j = 1;
  4. 14. case 2: j = 2;
  5. 15. default; j = 0;
  6. 16. }
  7. 17. System.out.println(“j=”+j);
What is the result?

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

#37. 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. 17. }
What is the result?

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

#38. Which two are valid declarations within an interface definition? (Choose two)

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

#39. Which two allow the class Thing to be instantiated using new Thing()? (Choose two)

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

#40. Given:
  1. 11. Float f = new Float(12);
  2. 12. switch (f) {
  3. 13. case 12: System.out.println(“Twelve”);
  4. 14. case 0: System.out.println(“Zero”);
  5. 15. default: System.out.println(Default);
  6. 16. }
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.294 Server date 05:26 10-01-2009 Developed by Zip © 2006 Up ^
Forum
Start online exam simulation
Master braindump
User braindumps