|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#104. Given: 11. class ClassA {} 12. class ClassB extends ClassA (} 13. class ClassC extends ClassA {)
and: 21. ClassA p0 = new ClassA(); 22. ClassB p1 = new ClassB(); 23. ClassC p2 = new ClassC(); 24. ClassA p3 = new ClassB(); 25. ClassA p4 = new ClassC();
Which three are valid? (Choose three.)
Show comments for this question (0)
Add comments
Link to this question
|
|
#108. Given: 11. public class Bootchy { 12. int bootch; 14. 15. public Bootchy() { 16. this(”snootchy”); 17. System. out. print(“first “ ); 18. } 19. 20. public Bootchy (String snootch ) { 21. this(420, “snootchy”); 22. System. out. print(”second “ ); 23. } 24. 25. public Bootchy (int botch, String snootch ) { 26. this.bootch = bootch; 27. this.snootch = snootch; 28. System. out . print(”third “ ); 29. } 30. 31. public static void raain (String[] args ) { 32. Bootchy b = new Bootchy(); 33. System. out. print(b. snootch + “ “ +b. bootch); 34. } 35. }
What is the result?
Show comments for this question (0)
Add comments
Link to this question
|
|
#109. A programmer needs to create a logging method that can accept an arbitrary number of arguments. For example, it may be called in these ways: loglt(”Iog message1 “); loglt(”Iog message2”,log message3”); Ioglt(”log message4”,”log message5”,”log message6”); Which declaration satisfies this requirement?
Show comments for this question (0)
Add comments
Link to this question
|
[1] ... [11] [12] |
|
|
|
gen. 0.294
|
Server date 06:05 10-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|