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-035: Sun Certified Programmer for Java 2 Platform 1.4
#101. Given:
  1. 11. public static void main( String[] args ) {
  2. 12. Integer a = new Integer(10);
  3. 13. Integer b = new Integer(10);
  4. 14. Integer c = a;
  5. 15. int d = 10;
  6. 16. double e = 10.0;
  7. 17. }
Which three evaluate to true? (Choose three)

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

#102. Given:
  1. 11. String a = null;
  2. 12. a.concat(“abc”);
  3. 13. a.concat(“def”);
  4. 14. System.out.println(a);
What is the result?

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

#103. Given that b and c refer to instances of wrapper classes, which two statements are true? (Choose two)

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

#104. Given:
  1. 1. public class Test {
  2. 2. public static void main(String [] args) {
  3. 3. System.out.println(args.length > 4 &&
  4. 4. args[4].equals(“-d”));
  5. 5. }
  6. 6. }
If the program is invoked using the command line:
java Test One Two Three –d
What is the result?

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

#105. Given:
  1. 11. try {
  2. 12. if ((new Object))(.equals((new Object()))) {
  3. 13. System.out.println(“equal”);
  4. 14. )else{
  5. 15. System.out.println(“not equal”);
  6. 16. }
  7. 17. }catch (Exception e) {
  8. 18. System.out.println(“exception”);
  9. 19. }
What is the result?

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

#106. Which three demonstrate an “is a” relationship? (Choose three)

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

#107. Given:
  1. 1. class BaseClass {
  2. 2. private float x = 1.of;
  3. 3. protected float getVar() { return x; }
  4. 4. }
  5. 5. class SubClass extends BaseClass {
  6. 6. private float x = 2.Of;
  7. 7. // insert code here
  8. 8. }
Which two are valid examples of method overriding when inserted at line 7? (Choose two)

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

#108. Given:
  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.println(b.getNumber());
  15. 15. }
  16. 16. }
What is the result?

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

#109. Which two are benefits of fully encapsulating a class? (Choose two)

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

#110. Given:
  1. 1. class A {
  2. 2. public A() {
  3. 3. System.out.println(“hello from a”);
  4. 4. }
  5. 5. }
  6. 6. class B extends A {
  7. 7. public B () {
  8. 8. System.out.println(“hello from b”);
  9. 9. super();
  10. 10 }
  11. 11. }
  12. 12. public class Test {
  13. 13. public static void main(String args[]) {
  14. 14. A a = new B();
  15. 15. }
  16. 16. }
What is the result when main is executed?

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


  [1] ...  [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] ... [29 
Up ^ gen. 0.216 Server date 05:27 10-01-2009 Developed by Zip © 2006 Up ^
Forum
Start online exam simulation
Master braindump
User braindumps