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
#61. Which two cause a compiler error? (Choose two)

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

#62. Given:
  1. 11. int i = 0, j = 5;
  2. 12. tp;
  3. 13. for (;;) {
  4. 14. i++;
  5. 15. for(;;) {
  6. 16. if (i> --j) {
  7. 17. break tp;
  8. 18. break tp;
  9. 19. }
  10. 20. }
  11. 21. System.out.println(“i=” +i “,j =”+j);
What is the result?

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

#63. Given:
  1. 1. public abstract class Test {
  2. 2. public abstract void methodA();
  3. 3.
  4. 4. public abstract void methodB()
  5. 5. {
  6. 6. System.out.println(“Hello”);
  7. 7. }
  8. 8. }
Which two changes, independently applied, allow this code to compile? (Choose two)

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

#64. Given:
  1. 1. public class Test {
  2. 2. public static void main(String Args[]) {
  3. 3. int i =1, j = 0;
  4. 4. switch(i) {
  5. 5. case 2: j +=6;
  6. 6. case 4: j +=1;
  7. 7. default: j +=2;
  8. 8. case 0: j +=4;
  9. 9. }
  10. 10. System.out.println(“j =” +j);
  11. 11. }
  12. 12. }
What is the result?

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

#65. Given:
  1. 1. class A {
  2. 2. }
  3. 3. class Alpha {
  4. 4. private A myA = new A();
  5. 5.
  6. 6. void dolt( A a ) {
  7. 7. a = null;
  8. 8. }
  9. 9. void tryIt() {
  10. 10. dolt( myA );
  11. 11. }
  12. 12. }
Which two statements are correct? (Choose two)

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

#66. Given:
  1. 1. class Super {
  2. 2. public int i = 0;
  3. 3.
  4. 4. public Super(String text) {
  5. 5. i = 1;
  6. 6. }
  7. 7. }
  8. 8.
  9. 9. public class Sub extends Super {
  10. 10. public Sub(String text) {
  11. 11. i = 2;
  12. 12. }
  13. 13.
  14. 14. public static void main(String args[]) {
  15. 15. Sub sub = new Sub(“Hello”);
  16. 16. System.out.println(sub.i);
  17. 17. }
  18. 18. }
What is the result?

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

#67. Given:
  1. 11. int i = 1,j = 10;
  2. 12. do{
  3. 13. if (i>j) {
  4. 14. continue;
  5. 15. }
  6. 16. j--;
  7. 17. } while (++i <6);
  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

#68. Which fragment is an example of inappropriate use of assertions?

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

#69. Given:
  1. 1. public class X {
  2. 2. public X aMethod() { return this;}
  3. 3. }
  4. 1. public class Y extends X {
  5. 2.
  6. 3. }
Which two methods can be added to the definition of class Y? (Choose two)

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

#70. 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(“C”);
  9. 9. }
  10. 10. finally {
  11. 11. System.out.print(“B”);
  12. 12. }
  13. 13. System.out.print(“D”);
  14. 14. }
  15. 15. public static void badMethod() {
  16. 16. throw new Error();
  17. 17. }
  18. 18. }
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.227 Server date 05:28 10-01-2009 Developed by Zip © 2006 Up ^
Forum
Start online exam simulation
Master braindump
User braindumps