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-025: Sun Certified Java Programmer
#31. Given:
  1. 8. int index = 1;
  2. 9. int [] foo = new int [3];
  3. 10.int bar = foo [index];
  4. 11.int baz = bar + index;
What is the result?

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

#32. Given:
  1. 1. public class foo {
  2. 2. public static void main (String[]args) {
  3. 3. String s;
  4. 4. system.out.printIn (“s=” + s);
  5. 5. }
  6. 6.}
What is the result?

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

#33. Which will declare a method that forces a subclass to implement it?

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

#34. You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access modifier that will accomplish this objective?

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

#35. Given:
  1. 1. abstract class abstrctIt {
  2. 2. abstract float getFloat ();
  3. 3. )
  4. 4. public class AbstractTest extends AbstractIt {
  5. 5. private float f1= 1.0f;
  6. 6. private float getFloat () {return f1;}
  7. 7. }
What is the result?

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

#36. Exhibit:
  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.printIn(j);
  12. 12.]
  13. 13.}
What is the result?

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

#37. 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 line 6,will cause a compiler error?

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

#38. Which declaration prevents creating a subclass of an outer class?

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

#39. Given:
  1. 1.byte [] arry1,array2 [];
  2. 2.byte array3 [][];
  3. 3.byte [][] array4;
If each array has been initialized, which statement will cause a compiler error?

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

#40. Exhibit:
  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 (straing args[]) (
  15. 15. sub sub = new sub (“Hello”);
  16. 16. system.out. PrintIn(sub.i);
  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] ... [16 
Up ^ gen. 0.169 Server date 05:53 10-01-2009 Developed by Zip © 2006 Up ^
Forum
Start online exam simulation
Master braindump
User braindumps