首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
执行下列程序时,会产生( )异常。 public class Test{ public static void main(String args[ ]){ int d=101; int b=220;
执行下列程序时,会产生( )异常。 public class Test{ public static void main(String args[ ]){ int d=101; int b=220;
admin
2012-12-13
21
问题
执行下列程序时,会产生( )异常。 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
答案
4
解析
转载请注明原文地址:https://jikaoti.com/ti/XJ80FFFM
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
以下保留字不用于循环逻辑的是()。
下列叙述中正确的是()。
在数据库设计中,将ER图转换成关系数据模型的过程属于()。
以下不属于Python语言控制结构的是()。
若想要在屏幕上打印输出Hello,World,应该使用下列哪个语句?()
获得用户输入的以逗号分隔的三个数字,记为a、b、c,以a为起始数值,b为差,c为数值的数量,产生一个递增的等差数列,将这个数列以列表格式输出,请完善PY103.PY中代码。试题程序:#请完善如下代码a,b,c=_____(1)
下列选项中不属于结构化程序设计原则的是()。
软件设计中划分模块的一个准则是()。
一个工作人员可以使用多台计算机,而一台计算机可被多个人使用,则实体工作人员与实体计算机之间的联系是()。
数据库设计分为以下6个设计阶段:需求分析阶段、______、逻辑设计阶段、物理设计阶段、实施阶段、运行和维护阶段。
随机试题
俄罗斯基础普通教育的学制为()
女性,40岁,因发现颈部包块1周来诊,查体发现右甲状腺有一直径1cm左右质硬结节,患者无发热、无声嘶、无情绪改变。查体时除触摸甲状腺外,还应注意检查
轻度新生儿窒息错误的抢救方法是
机床的负荷试验主要用以试验()。
根据《证券法》规定,下列关于证券承销的说法,不正确的是()。
下列各项中,属于处于导入期的企业可以选择的财务战略是()。
—Wherearethe______?—Theyareplaying______footballontheplayground.
“留得青山在,不怕没柴烧”,已经成为一些人不思进取的借口。不要再有“留得青山在,不怕没柴烧”的侥幸,留得青山在,也怕没柴烧。青山不是资本,可能只是一线希望。吝惜“青山”会颓废你的心灵,吝惜“青山”会埋没你的斗志。这段话是要告诉我们:
设函数f(x)在闭区间[0,1]上连续,在开区间(0,1)内可导,且f(0)=0,f(1)=
FromthefirstparagraphwemayseethatAmerica’sattitudetowardsChina’ssuccessis______.Judgingfromthecontext,thewor
最新回复
(
0
)