Given the following:
1)class Base{
2) void display () throws Exception{throws new Exception();}
3) }
4) public class Derived Base {
5) void display (){ System. out.println("Derived");}
6)public static void main(String args[]){
7) new Derived ()display ();
8) }
9) }
what is the result?
a)Derived
b)the code runs with no output.
c) compitation fails because of an error in the line 2.
d) computation fails because of an error in the line 7.
Answers
Answered by
0
woooow that's a lot hopefully you get an actual answer soon
Similar questions
Math,
4 months ago
Social Sciences,
4 months ago
Social Sciences,
4 months ago
Computer Science,
9 months ago
Environmental Sciences,
1 year ago