1.) The user (caller) of a method has to change the return value of the method.

a) true

b) false

2.) In Java, if a method throws an exception then which type of exception the user (caller) of the method has to deal with it otherwise the program won’t compile?

a) All

b) Unchecked Exception

c) Checked Exception

d) None

3.) Which of the following is dealing with binary data?

a) Writer

b) Streams

c) None

d) Reader

4.) For file IO a relative path is relative to ___________.

a) the root directory

b) the subdirectory

c) the current working directory

d) the parent directory



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *