题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-02-05 00:47:24

[单项选择]执行下列程序时,会产生什么异常
public class Test
public static void main(String args[])
int d=101;
int b=220;
long a=321;
System.out.println((a-b)/(a-b-d));


A. ArrayIndexOutOfBoundsException
B. NumberFormatException
C. ArithmeticException
D. EOFException

更多"执行下列程序时,会产生什么异常 public class Test "的相关试题:

[单项选择]执行下列程序时,会产生什么异常
public class Test
public static void main(String args[]
int d=101;
int b=220;
long a=321;
System.out.println((a-b) /(a-b-d) );


A. ArraylndexOutOfBoundsException
B. NumberFormatException
C. ArithmeticExCeption
D. EOFException
[单项选择]执行下列程序时,会产生什么异常
public class Test
public static void main(String args[ ])(
int d=101;
int b=220;
long a=321;
System.out.println((a-B) /(a-b-D) );


A. ArrayIndexOutOfBoundsException
B. NumberFormatException
C. ArithmetieException
D. EOFException
[单项选择]执行下列程序时,会产生什么异常______。
public class Test
public static void main (String args[])
int d=101;
int b=220;
long a=321;
System.out .printIn((a-b)/(a-b-d));


A. ArrayIndexOutOfBoundsException
B. NumberFormatException
C. ArithmeticException
D. EOFException
[单项选择]执行下列程序时,会产生( )异常。
public class Test
public static void main(String args[ ])
int d=101;
int b=220;
long a=321;
System.out.println((a-b)/(a-b-d));


A. ArraylndexOutOfBoundsException
B. NumberFormatException
C. ArithmeticException
D. EOFExcepfion
[单项选择]下列代码的执行结果是( )。
public class Test
public static void main(String args[ ])
float t=9.0f;
int q=5;
System.out.println((t++) * (- -q));


A. 41
B. 41.0
C. 36
D. 36.0
[单项选择]阅读下列代码 public class Test{ public static void main(String args[]){ System.out.println(89>>1); } } 其运行结果是【 】
A. 44
B. 45
C. 88
D. 90
[单项选择]下列代码的执行结果是( )。
public class Test3
public static void main(String args[])
System.out.pnntln(100%3);
System.out.pfintln(100%3.0);


A. 1和1
B. 1和1.0
C. 1.0和1
D. 1.0和1.0
[单项选择]执行下面程序后输出的正确结果是 public class Test{ public static void main(String args[]){ System.out.print(100%3); System.out.print(","); System.out.print(100%3.0); } }
A. 1,1
B. 1,1.0
C. 1.0,1
D. 1.0,1.0
[单项选择]运行下面的程序时,会产生( )。
public class Test
public static void main(String args[ ] )
int x =0;
int y = 2/x;
int z[ ] = 1,2,4,6;
int p=z[4];


A. ArrayIndexOutOfBoundsExcePtion异常
B. NumberFormatException异常
C. ArithmeticException异常
D. ArithmeticException异常和ArrayIndexOutOfBoundsExcePtion异常
[单项选择]下列语句输出结果为( )。  public class test     public static void main(String args[ ])       int x=10,y=8;    boolean b=true;    System.out.println(x>0&&x<y||b);     

A. true
B. false
C. 1
D. 0
[单项选择]下列代码的执行结果是( )。
class operator Test
public static void main(String[]args)
int x=8;
short y=2;
system.out.println("xis"+ x + ",yis"+y);


A. 8和2
B. 8.0和2.0
C. 8和2.0
D. 8.0和2

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码