What will be the output of the program? class a { final public int getresult(int a, int
b.{ return 0; } } class b extends a { public int getresult(int a, int
b.{return 1; } } public class test { public static void main(string args[]) { b b = new b(); system.out.println("x = " +
b.getresult(0, 1)); } } a x = 0 b x = 1 c compilation fails d an exception is thrown at runtime?
Answers
Answered by
4
I know you search in Google
Similar questions
English,
8 months ago
Art,
8 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago
Math,
1 year ago