103. What is the result?
A. 5 4 3 2
B. 5 4 4 3
C. 5 5 4 3
D. 5 5 4 4
E. Compilation fails.
104. 2. Which statements concerning following code are true?
(Choose two or three)
105. A. This class is fully encapsulated.
B. B. The variables break the encapsulation of class.
C. C. The methods break the encapsulation of class
D. D. All methods are following the JavaBean standard.
E. E. Some methods are not following the JavaBean
standard.
106. 3. Which of following methods are valid constructor for class
Note? (Choose all that apply)
A. public Note() { ... }
B. public void Note() { ... }
C. private Note() { ... }
D. public static Note() { ... }
E. Note() { ... }
F. final Note() { ... }
108. What is the result?
A. C6 C1 C2 C3 C4 C5
B. C6 C1 C3 C4 C2 C5
C. C6 C1 C3 C4 C5 C2
D. C6 C4 C3 C1 C2 C5
E. C6 C4 C3 C1 C5 C2
109. 5. A JavaBean Class has following field:
Which method declaration follows JavaBean standard?
(Choose all that apply)
A. public void getVisible()
B. public boolean getVisible()
C. private boolean isVisible()
D. public boolean isVisible()
E. public boolean canVisible()
F. private boolean canVisible()
110. 6. Given:
Which four statements are true? (Choose four)
A. fun1() can directly modify field i.
B. fun1() can directly modify field j.
C. fun2() can directly modify field i.
D. fun1() can directly call fun2().
E. fun2() can directly call fun1().
F. StaticQuiz.fun1() is a valid invocation outside StaticQuiz
class.
G. StaticQuiz.fun2() is a valid invocation outside StaticQuiz
class.
113. How many objects are created in main()?
How many object is available for Garbage Collection at line 13?
A. 2 objects are created.
B. 4 objects are created.
C. 5 objects are created.
D. 1 object is avaible for Garbage Collection.
E. 2 object is avaible for Garbage Collection.
F. 3 object is avaible for Garbage Collection.