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-056: Sun Certified Programmer for J2SE 5.0 Upgrade Exam
#71. Given:
  1. 12. NumberFormat nf = NumberFormat.getlnstance();
  2. 13. nf.setMaximumFractionDigits(4);
  3. 1& nf.setMinimumFractionDigits(2);
  4. 15. String a = nf.format(3.1415926);
  5. 16. String b = nf.format(2);
Which two statements are true about the result if the detault locale is LocaleUS? (Choose two.)

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

#72. When comparing java.io.BufferedWriter to java.ioFileWriter, which capability exists as a method in only one of the two?

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

#73. Given:
  1. 1. public class TestString3 {
  2. 2. public static void main(String[] args) {
  3. 3. // insert code here
  4. 5. System.out.println(s);
  5. 6. }
  6. 7. }
Which two code fragments, inserted independently at line 3, generate the output 4247? (Choose two.)

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

#74. Given:
  1. 1. public class MyLogger {
  2. 2. private StringBuilder logger = new StringBuuilder();
  3. 3. public void log(String message, String user) {
  4. 4. logger.append(message);
  5. 5. logger.append(user);
  6. 6. }
  7. 7. }
The programmer must guarantee that a single MyLogger object works properly for a multithreaded system.
How must this code be changed to be thread-safe?

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

#75. Given:
  1. 12. String csv = “Sue ,5,true,3”;
  2. 13. Scanner scanner = new Scanner( csv );
  3. 14. scanner.useDelimiter(”,”);
  4. 15. int age = scanner.nextlnt();
What is the result?

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

#76. Given:
  1. 1. public class Threads5 {
  2. 2. public static void main (String[] args) {
  3. 3. new Thread(new Runnable() {
  4. 4. public void run() {
  5. 5. System.out.print(”bar”);
  6. 6. }}).start();
  7. 7. }
  8. 8. }
What is the result?

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

#77. Given:
  1. 1. public class Threads3 implements Runnable {
  2. 2. public void run() {
  3. 3. System .out.print(”running”);
  4. 4. }
  5. 5. public static void main(String[] args) {
  6. 6. Thread t = new Thread(new Threads3());
  7. 7. t.run();
  8. 6. t.run();
  9. 9. t.start();
  10. 10. }
  11. 11. }
What is the result?

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

#78. Given:
  1. 1. public class TestOne {
  2. 2. public static void main (String[] args) throws Exception {
  3. 3. Thread.sleep(3000);
  4. 4. System .out.println(”sleep”);
  5. 5. }
  6. 6. }
What is the result?

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

#79. Given this method in a class:
  1. 21. public String toString() {
  2. 22. Stringsuffer buffer = new Stringsuffero;
  3. 23. buffer.append(’cz’);
  4. 24. buffer.append(this.name);
  5. 25. buffer.append(’>’);
  6. 26. return buffer.tostringo;
  7. 27. }
Which statement is true?

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

#80. Given:
  1. 11. double input = 314159.26;
  2. 12. NumberFormat nf = NumberFormat.getlnstance(Locale.ITALIAN);
  3. 13. String b;
  4. 14. //insert code here
Which code, inserted at line 14, sets the value of b to 314.159,26?

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


 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] ... [12 
Up ^ gen. 0.394 Server date 05:30 10-01-2009 Developed by Zip © 2006 Up ^
Forum
Start online exam simulation
Master braindump