Jp Assignment 4
Jp Assignment 4
9. What is the result of compiling a class that implements an interface but does not
define all its methods?
a) Compile error
b) Runtime error
c) Warning
d) Success
12. What happens when an interface has two variables with the same name from
different interfaces?
a) Compile error
b) Ambiguity
c) Use interface name to qualify
d) Runtime exception
24. How do you hide a class in a package from being used by others?
a) Make it private
b) Make it protected
c) Do not declare it public
d) Use abstract