- A The code will lead to a compilation error as declaration of the display method has been provided in two interface.
- B The code will lead to a compilation error due to public modifier while declaring the display method.
- C The code will compile and execute successfully showing the output Welcome to Examveda.
- D The code will lead to a compilation error as the display method is not declared as abstract.
- Share this MCQ
Answer:
C
Share this MCQ
The code will compile and execute successfully showing the output Welcome to Examveda.
Click me to Read more Question & Answer of Java Interfaces And Abstract Classes MCQShare this MCQ