Professional Documents
Culture Documents
JAVA Practical Quiz Ans
JAVA Practical Quiz Ans
JAVA Practical Quiz Ans
1. The ___new______ operator creates a single instance of a named class, returning a reference to that
object.
3. To convert a larger value into smaller value, the _______explicit________ cast must be used.
5. When a program does not want to handle exceptions, the ______ throws____ clause is used.
6. The ________read()_______ method without any parameters returns an integer representation of the next
available byte of input.
7. Any method belonging to an interface, which is implemented within a class should be declared
as____public___.
14. Can you declare the main method as final? Yes, such as, public static final void main(String[] args){}.
No.