19. What is the correct order in list given below?
[a] package, import, class
[b] class, import, package
[c] import, package, class
[d] package, class, import
Answer
[a] package, import, class |
21. Select all the correct choices from the following statements?
[a] A static modifier may not be applied to an inner class
[b] An inner class can have explicit constructors
[c] An inner class may implement an interface, or extend other classes
[d] Anonymous inner classes must be instantiated at the same point they are defined.
Answer
[b] An inner class can have explicit constructors
[c] An inner class may implement an interface, or extend other classes
[d] Anonymous inner classes must be instantiated at the same point they are defined. |