Q15.webp
Đ

Q15.webp

Kizspy | Question: 15
(Choose 1 answer)
What will be the output of the following code snippet?
class A {
static void print() {
System.out.println("Class A");
class B extends A {
static void print() {
System.out.println("Class B");
public class Test {
public static void main(String[] args) {
A obj = new B();
obj.print();
A. Class A
B. Class B
C. Compilation error
D. Runtime error

Thông tin

Category
PRO192
Thêm bởi
Đức Thành1
Ngày thêm
Lượt xem
1,742
Lượt bình luận
8
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom