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
#51. Given:
  1. 1. public class Foo implements Runnable (
  2. 2. public void run (Thread t) {
  3. 3. system.out.printIn(“Running.”);
  4. 4. }
  5. 5. public static void main (String[] args) {
  6. 6. new thread (new Foo()).start();
  7. 7. )
  8. 8.)
What is the result?

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

#52. Which statement is true?

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

#53. Which two CANNOT directly cause a thread to stop executing? (Choose Two)

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

#54. Which two can be used to create a new Thread? (Choose Two)

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

#55. Given:
  1. 1. public class SyncTest (
  2. 2. private int x;
  3. 3. private int y;
  4. 4. private synchronized void setX (int i) (x=1;)
  5. 5. private synchronized void setY (int i) (y=1;)
  6. 6. public void setXY(int 1)(set X(i); setY(i);)
  7. 7. public synchronized Boolean check() (return x !=y;)
  8. 8. )
Under which conditions will check ()return true when called from a different class?

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

#56. Exhibit:
  1. 1. class A implements runable (
  2. 2. int i;
  3. 3. public void run () (
  4. 4. try (
  5. 5. thread.sleep(5000);
  6. 6. i= 10;
  7. 7. ) catch(InterruptedException e) {}
  8. 8. )
  9. 9. )
  10. 10.
  11. 11. public class Test {
  12. 12. public static void main (string args[]) (
  13. 13. try (
  14. 14. A a = new A ();
  15. 15. Thread t = new Thread (a);
  16. 16. t.start();
  17. 17.
  18. 18. int j= a.i;
  19. 19.
  20. 20. ) catch (Exception e) {}
  21. 21. )
  22. 22. )
Which statement al line 17 will ensure that j=10 at line 19?

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

#57. Exhibit:
  1. 1. public class X implements Runnable (
  2. 2. private int x;
  3. 3. private int y;
  4. 4.
  5. 5. public static void main(String [] args) (
  6. 6. X that = new X();
  7. 7. (new Thread(that)) . start( );
  8. 8. (new Thread(that)) . start( );
  9. 9. )
  10. 10.
  11. 11. public synchronized void run( ) (
  12. 12. for (;;) (
  13. 13. x++;
  14. 14. y++;
  15. 15. System.out.printIn(“x = “ + x + “, y = “ + y);
  16. 16. )
  17. 17. )
  18. 18. )
What is the result?

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

#58. Which two CANNOT directly cause a thread to stop executing? (Choose Two)

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

#59. Exhibit:
  1. 1. class A {
  2. 2. public byte getNumber () {
  3. 3. return 1;
  4. 4. }
  5. 5. }
  6. 6.
  7. 7. class B extends A {
  8. 8. public short getNumber() {
  9. 9. return 2;
  10. 10. }
  11. 11.
  12. 12. public static void main (String args[]) {
  13. 13. B b = new B ();
  14. 14. System.out.printIn(b.getNumber())
  15. 15. }
  16. 16. }
What is the result?

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

#60. Given:
AnInterface is an interface.
AnAdapter0 is a non-abstract,non-final class with a zero argument constructor.
AnAdapter1 is a non-abstract,non-final class without a zero argument constructor,but with a constructor that takes one int argument.
Which two construct an anonymous inner class? (Choose Two)

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