PRO192_-_SP_2024_-_RE_1741.webp
Izumi991

PRO192_-_SP_2024_-_RE_1741.webp

  • Media owner Izumi991
  • Ngày thêm
(Choose 1 answer)
What will be the output?
interface A{
public void method();}
class One{
public void method(){
System.out.println("Class One method");}
}
class Two extends One implements A{public void method(){}System.out.println("Class Two method");
}
public class Main extends Two{
public static void main(String[] args) { A a = new Two();a.method();
}
}
A. will print Class One method
B. will print Class Two method
C. compiles fine but print nothing
ID compilation error


8

Thông tin

Category
PRO192
Thêm bởi
Izumi991
Ngày thêm
Lượt xem
4,502
Lượt bình luận
19
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_SP_2024_-_RE_1741.webp
File size
210.7 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom