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
#101. Exhibit:
  1. 1. public class X {
  2. 2. public static void main (String[]args) {
  3. 3. string s = new string (“Hello”);
  4. 4. modify(s);
  5. 5. System.out.printIn(s);
  6. 6. }
  7. 7.
  8. 8. public static void modify (String s) {
  9. 9. s += “world!”;
  10. 10. }
  11. 11. }
What is the result?

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

#102. Which two are equivalent? (Choose Two)

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

#103. Exhibit:
  1. 1. public class X {
  2. 2. public static void main (String[]args) {
  3. 3. int [] a = new int [1]
  4. 4. modify(a);
  5. 5. System.out.printIn(a[0]);
  6. 6. }
  7. 7.
  8. 8. public static void modify (int[] a) {
  9. 9. a[0] ++;
  10. 10. }
  11. 11. }
What is the result?

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

#104. Given:
  1. 13. public class Foo {
  2. 14. public static void main (String [] args) {
  3. 15. StringBuffer a = new StringBuffer (“A”);
  4. 16. StringBuffer b = new StringBuffer (“B”);
  5. 17. operate (a,b);
  6. 18. system.out.printIn{a + “,” +b};
  7. 19. )
  8. 20. static void operate (StringBuffer x, StringBuffer y) {
  9. 21. y.append {x};
  10. 22. y = x;
  11. 23. )
  12. 24. }
What is the result?

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

#105. Given:
  1. 1. public class X {
  2. 2. public static void main (String[] args) {
  3. 3. byte b = 127;
  4. 4. byte c = 126;
  5. 5. byte d = b + c;
  6. 6. }
  7. 7. }
Which statement is true?

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

#106. Given:
  1. 1. public class WhileFoo {
  2. 2. public static void main (String []args) {
  3. 3. int x= 1, y = 6;
  4. 4. while (y--) {x--;}
  5. 5. system.out.printIn(“x=” + x “y =” + y);
  6. 6. }
  7. 7. }
What is the result?

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

#107. Given:
  1. 1. public class Foo {
  2. 2. private int val;
  3. 3. public foo(int v) (val = v;) }
  4. 4. public static void main (String [] args) {
  5. 5. Foo a = new Foo (10);
  6. 6. Foo b = new Foo (10);
  7. 7. Foo c = a;
  8. 8. int d = 10;
  9. 9. double e = 10.0;
  10. 10. }
  11. 11. }
Which three logical expression evaluate to true? (Choose Three)

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

#108. Exhibit:
  1. 1. public class X {
  2. 2. private static int a;
  3. 3.
  4. 5. public static void main (String[] args) {
  5. 6. modify (a);
  6. 7. }
  7. 8.
  8. 9. public static void modify (int a) {
  9. 10. a++;
  10. 11. }
  11. 12.}
What is the result?

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

#109. Exhibit:
  1. 1. public class Test {
  2. 2. public static void replaceJ(string text) {
  3. 3. text.replace (‘j’, ‘l’);
  4. 4. }
  5. 5.
  6. 6. public static void main(String args[]) {
  7. 7. string text = new String (“java”)
  8. 8. replaceJ(text);
  9. 9. system.out.printIn(text);
  10. 10. }
  11. 11.}
What is the result?

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

#110. Which two are equivalent? (Choose Two)

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


  [1] ...  [11] [12] [13] [14] [15] [16]
Up ^ gen. 0.25 Server date 05:51 10-01-2009 Developed by Zip © 2006 Up ^
Forum
Start online exam simulation
Master braindump
User braindumps