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
#61. Which two statements are true? (Choose Two)

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

#62. Exhibit:
  1. 1. public class Mycircle {
  2. 2. public double radius;
  3. 3. public double diameter;
  4. 4.
  5. 5. public void setRadius(double radius)
  6. 6. this.radius = radius;
  7. 7. this.diameter= radius * 2;
  8. 8. }
  9. 9.
  10. 10. public double getRadius() {
  11. 11. return radius;
  12. 12. }
  13. 13. }
Which statement is true?

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

#63. You want to limit access to a method of a public class to members of the same class. Which access modifier accomplishes this objective?

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

#64. Exhibit: ClassOne.java
  1. 1. package com.abc.pkg1;
  2. 2. public class ClassOne {
  3. 3. private char var = ‘a’;
  4. 4. char getVar() {return var;}
  5. 5. }
  6. ClassTest.java
  7. 1. package com.abc.pkg2;
  8. 2. import com.abc.pkg1.ClassOne;
  9. 3. public class ClassTest extends ClassOne {
  10. 4. public static void main(String[]args) {
  11. 5. char a = new ClassOne().getVar();
  12. 6. char b = new ClassTest().getVar();
  13. 7. }
  14. 8. }
What is the result?

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

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

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

#66. Which two statements are true regarding the creation of a default constructor? (Choose Two)

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

#67. Exhibit:
  1. 1. class super {
  2. 2. public int getLength() {return 4;}
  3. 3. }
  4. 4.
  5. 5. public class Sub extends Super {
  6. 6. public long getLength() {return 5;}
  7. 7.
  8. 8. public static void main (String[]args) {
  9. 9. super sooper = new Super ();
  10. 10. Sub sub = new Sub();
  11. 11. System.out.printIn(
  12. 12. sooper.getLength()+ “,” + sub.getLength() };
  13. 13. }
  14. 14. }
What is the output?

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

#68. Exhibit
  1. 1. public class SyncTest{
  2. 2. public static void main(String[] args) {
  3. 3. final StringBuffer s1= new StringBuffer();
  4. 4. final StringBuffer s2= new StringBuffer();
  5. 5. new Thread () {
  6. 6. public void run() {
  7. 7. synchronized(s1) {
  8. 8. s2.append(“A”);
  9. 9. synchronized(s2) {
  10. 10. s2.append(“B”);
  11. 11. System.out.print(s1);
  12. 12. System.out.print(s2);
  13. 13. }
  14. 14. }
  15. 15. }
  16. 16. }.start();
  17. 17. new Thread() {
  18. 18. public void run() {
  19. 19. synchronized(s2) {
  20. 20. s2.append(“C”);
  21. 21. synchronized(s1) {
  22. 22. s1.append(“D”);
  23. 23. System.out.print(s2);
  24. 24. System.out.print(s1);
  25. 25. }
  26. 26. }
  27. 27. }
  28. 28. }.start();
  29. 29. }
  30. 30. }
Which two statements are true? (Choose Two)

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

#69. Which method in the Thread class is used to create and launch a new thread of execution?

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

#70. Which code determines the int value foo closest to, but not greater than, a double value bar?

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