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
#51. Given:
  1. 35. int x= 10;
  2. 36. do {
  3. 37. x--;
  4. 38. } while (x< 10);
How many times will line 37 be executed?

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

#52. Given:
  1. 1. public class Boxer1{
  2. 2. lnteger i;
  3. 3. int x;
  4. 4. public Boxer1(int y)
  5. 5. x = i+y;
  6. 6. System.out.println(x);
  7. 7. }
  8. 8. public static void main(String[] args){
  9. 9. new Boxer1 (new lnteger(4));
  10. 10. }
  11. 11. }
What is the result?

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

#53. Given:
  1. 11. public class Test {
  2. 12. public static void main(String [] args) {
  3. 13. int x = 5;
  4. 14. boolean b1 =true;
  5. 15. boolean b2 false;
  6. 16.
  7. 17. if((x= =4) && !b2)
  8. 18. System.out.print(1);
  9. 19. System.out.print(2);
  10. 20. if ((b2 = true) && b1 )
  11. 21. System.out.print(3);
  12. 22. }
  13. 23. }
What is the result?

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

#54. Given a class Repetition:
  1. 1. package utils;
  2. 2.
  3. 3. public class Repetition
  4. 4. public static String twice(String s) { return s + s;}
  5. 5. }
and given another class Demo:
  1. 1. //insert code here
  2. 2.
  3. 3. public class Demo {
  4. 4. public static void main(String[] args) {
  5. 5. System.out.println(twice(“pizza”));
  6. 6. }
  7. 7. }
Which code should be inserted at line 1 of Demo.java to compile and run Demo to print “pizzapizza”?

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

#55. Given classes defined in two different files:
  1. 1. package packageA;
  2. 2. public class Message {
  3. 3. String getText() { return “text”; }
  4. 4. }
and;
  1. 1. package packageB;
  2. 2. public class XMLMessage extends packageA.Message {
  3. 3. String getText() { return “<msg>text</msg>”;}
  4. 4. public static void main(String[] args) {
  5. 5. System.out.println(new XMLMessage().getText());
  6. 6. }
  7. 7. }
What is the result of executing XMLMessage.main?

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

#56. A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib jar.
Which three, taken independently, will allow the developer to use the Paper class while compiling the Book class? (Choose three.)

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

#57. Click the Exhibit button.

Given the fully-qualified class names:
com .foo .bar.Dog
com.foo.bar.bla.Book
com .bar,Car
com .bar.blatz.Sun
Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JVM?

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

#58. Given:
  1. 1. public class Score implements Comparablec<Score> {
  2. 2. private int wins, losses;
  3. 3. public Score(int w, int I) { wins = w; losses = I; }
  4. 4. public int getWins() { return wins; }
  5. 5. public int getLosses() { return losses; }
  6. 6. public String toString() {
  7. 7. return “<“ + wins + “,“ + losses +“>“;
  8. 6. }
  9. 9. //insert code here
  10. 10.}
Which method will complete this class?

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

#59. Given:
  1. 11. public static void append(List list) { list.add(0042); }
  2. 12. public static void main(String[] args)
  3. 13 List<Integer> intList = new ArrayList<lnteger>();
  4. 14. append(intList);
  5. 15. System.out.println(intList.get(0));
  6. 16. }
What is the result?

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

#60. Given:
  1. int[] myArray = new int[] {1, 2, 3, 4, 5};
What allows you to create a list from this array?

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