Computer Science, asked by Ranajoy1652, 1 year ago

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 aniket122
4
I know you search in Google
Similar questions