. What is the output of following program?
- package com.instanceofjava;
- class A
- {
- void method(int i)
- {
- }
- }
- class B extends A
- {
- @Override
- void method(Integer i)
- {
- }
- }
- Compile time Error:The method method(Integer) of type B must override or implement a supertype method
No comments:
Post a Comment