PRO192_-_FA_2023_-_FE_1027.webp
Erza_girl

PRO192_-_FA_2023_-_FE_1027.webp

(14)
Answer (Choose 1 answer)
A. Compilation and output of the string "Base"
B. Compilation and output of the string "Severn" at runtime
C. Compilation and no output at runtime
D. Compile time error
class Base
What will happen when you attempt to compile and run the following class?
Base(int i){
System.out.println("Base");
}
}
class Severn extends Base{
public static void main(String argv[]){Severn s = new Severn();
void Severn(){
System.out.println("Severn");}
}


Thông tin

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

Image metadata

Filename
PRO192_-_FA_2023_-_FE_1027.webp
File size
53.3 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom