PRO192_-_SP_2024_-_RE_1741.webp
Izumi991

PRO192_-_SP_2024_-_RE_1741.webp

  • Media owner Izumi991
  • Ngày thêm
(Choose 1 answer)
public class As{
What will happen when you attempt to compile and run the following code
int i = 10;int j;
char z= 1;
boolean b;
public static void main(String argv[]){
As a = new As();
a.amethod();
}
public void amethod(){
System.out.println(j);
System.out.println(b);
}
}
A. Compilation succeeds and at run time an output of 0 and false
B. Compilation succeeds and at run time an output of 0 and true
C. Compile time error b is not initialised
D. Compile time error z must be assigned a char value


Q: 37

Thông tin

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

Image metadata

Filename
PRO192_-_SP_2024_-_RE_1741.webp
File size
213.7 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom