PRO192_FE_SP23_311.webp
Soram

PRO192_FE_SP23_311.webp

  • Media owner Soram
  • Ngày thêm
Bài viết gốc: Chủ đề 'PRO192 FE SP23'
(Choose 1 answer)
class Base
What will happen if you attempt to compile and run the following code?
class Sub extends Base {}
class Sub2 extends Base {}public class CEX{
public static void main(String argv[]){
Base b=new Base();
Sub s=(Sub) b;
}
}
A. Compile and run without error
B. Compile time Exception
C. Runtime Exception

Thông tin

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

Share this media

Back
Bên trên Bottom