Which statement is true about the following code? Select the one correct answer. (a) MyClass implements only
Question:
Which statement is true about the following code?
Select the one correct answer.
(a) MyClass implements only Interface1; the implementation for void h() from Interface2 is missing.
(b) The declarations of void g() in the two interfaces are in conflict, so the code will not compile.
(c) The declarations of int VAL_B in the two interfaces are in conflict, so the code will not compile.
(d) Nothing is wrong with the code; it will compile without errors.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Programmers Guide To Java SE 8 Oracle Certified Associate OCA
ISBN: 9780132930215
1st Edition
Authors: Khalid Mughal, Rolf Rasmussen
Question Posted: