|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#83. Exhibit: 1. package foo; 2. 3. import java.util.Vector; 4. 5. private class MyVector extends Vector { 6. int i = 1; 7. public MyVector() { 8. i = 2; 9. } 10. } 11. 12. public class MyNewVector extends MyVector { 13. public MyNewVector () { 14. i = 4; 15. } 16. public static void main (String args []) { 17. MyVector v = new MyNewVector(); 18. } 19. }
The file MyNewVector.java is shown in the exhibit. What is the result?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.196
|
Server date 06:46 10-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|