PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
T

PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp

}
(Choose 1 answer)
private class Base{
What will be the result when you try to compile and run the following code?
Base(){
int i = 100;
System.out.println(i);
}
public class Pri extends Base{
static int i = 200;
public static void main(String argv[]){
Pri p = new Pri();
System.out.println(i);}
}
A. Error at compile time
B. 200
C. 100 followed by 200
D. 100

Thông tin

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

Image metadata

Filename
PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
File size
185.5 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom