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
#11. Given:
  1. 11. int x = 3;
  2. 12. int y = 1;
  3. 13. if (x = y) {
  4. 14. System.out.println(“x = “ + x);
  5. 15. }
What is the result?

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

#12. Given:
  1. 1. public class Test {
  2. 2. public static void aMethod() throws Exception {
  3. 3. try {
  4. 4. throw new Exception();
  5. 5. } finally {
  6. 6. System.out.println(finally);
  7. 7. }
  8. 8. }
  9. 9. public static void main(String args[]) {
  10. 10. try {
  11. 11. aMethod();
  12. 12. } catch (Exception e) {
  13. 13. System.out.println(“exception”);
  14. 14. }
  15. 15. System.out.println(“finished”);
  16. 16. }
  17. 17. }
What is the result?

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

#13. Given:
  1. 1. public interface Foo {
  2. 2. int k = 4;
  3. 3. }
Which three are equivalent to line 2? (Choose three)

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

#14. Given:
  1. 1. package test1;
  2. 2. public class Test1 {
  3. 3. static int x = 42;
  4. 4. }
  5. 1. package test2;
  6. 2. public class Test2 extends test1.Test1 {
  7. 3. public static void main(String[] args) {
  8. 4. System.out.println(“x = “ + x);
  9. 5. }
  10. 6. }
What is the result?

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

#15. Given:
  1. 1. class A {
  2. 2. protected int method1(int a, int b) { return 0; }
  3. 3. }
Which two are valid in a class that extends class A? (Choose two)

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

#16. Given:
  1. 1. public class Delta {
  2. 2. static boolean foo(char c) {
  3. 3. System.out.print(c);
  4. 4. return true;
  5. 5. }
  6. 6. public static void main( String[] argv ) {
  7. 7. int i =0;
  8. 8. for ( foo(‘A’); foo(‘B’)&&(i<2); foo(‘C’)){
  9. 9. i++ ;
  10. 10. foo(‘D’);
  11. 12. }
  12. 13. }
  13. 14. }
What is the result?

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

#17. Given:
  1. 1. public class Test{
  2. 2. public static void main( String[] argv ){
  3. 3. // insert statement here
  4. 4. }
  5. 5. }
Which statement, inserted at line 3, produces the following output? Exception in thread “main” java.lang.AssertionError: true at Test.main(Test.java:3)

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

#18. Given:
  1. 1. public class ArrayTest {
  2. 2. public static void main(String[] args) {
  3. 3. float fl[], f2[];
  4. 4. fl = new float[10];
  5. 5. f2 = f1;
  6. 6. System.out.println(“f2[0]= “ + f2[0]);
  7. 7. }
  8. 8. }
What is the result?

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

#19. Given:
  1. 1. public class Test {
  2. 2. public int aMethod() {
  3. 3. static int i = 0;
  4. 4. i++;
  5. 5. return i;
  6. 6. }
  7. 7. public static void main (String args[]) {
  8. 8. Test test = new Test();
  9. 9. test.aMethod();
  10. 10. int j = test.aMethod();
  11. 11. System.out.println(j);
  12. 12. }
  13. 13. }
What is the result?

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

#20. Given:
  1. 1. class Super {
  2. 2. public float getNum() { return 3.0f; }
  3. 3. }
  4. 4.
  5. 5. public class Sub extends Super {
  6. 6.
  7. 7. }
Which method, placed at line6, causes compilation to fail?

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