PRO192_-_FA_2023_-_RE_1159.webp
Hoàng Nam

PRO192_-_FA_2023_-_RE_1159.webp

(Choose 1 answer)
Find the output of the below program?
class Shape {
protected int a;
protected Shape() { a = 10;}
}
public class Main extends Shape {
public static void main(String[] args) { Main obj = new Main();System.out.println(obj.a);}
}
A. 0
B. 10
C. Compilation Error
D. Exception

Exit 38

Thông tin

Category
PRO192
Thêm bởi
Hoàng Nam
Ngày thêm
Lượt xem
3,661
Lượt bình luận
15
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_FA_2023_-_RE_1159.webp
File size
48.4 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom