请教一个关于java的英文题目.“15.Which of the following statements”...15.Which of the following statements is true about exceptions?a) The throwing method has to handle them b) The catching method has to handle them c) You need to add an

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/26 18:44:01
请教一个关于java的英文题目.“15.Which of the following statements”...15.Which of the following statements is true about exceptions?a) The throwing method has to handle them b) The catching method has to handle them c) You need to add an

请教一个关于java的英文题目.“15.Which of the following statements”...15.Which of the following statements is true about exceptions?a) The throwing method has to handle them b) The catching method has to handle them c) You need to add an
请教一个关于java的英文题目.“15.Which of the following statements”...
15.Which of the following statements is true about exceptions?
a) The throwing method has to handle them
b) The catching method has to handle them
c) You need to add an exception block
d) They are only used for files
e) They replace programming by contract
15e
能不能简单说明一下为什么其他的选项不对?

请教一个关于java的英文题目.“15.Which of the following statements”...15.Which of the following statements is true about exceptions?a) The throwing method has to handle them b) The catching method has to handle them c) You need to add an
异常,可以抛可以抓.
第一个就说是抛异常必须处理它.显然错的啊.都抛走了,throw还怎么handle?
至于捕捉异常,catch(Exception e).打个比方,你抓到一只小鸟,怎么办?
对,我怎么知道怎么办,想怎么办就怎么办.当然最通常的方法就是将异常打印出来.就像是你告诉别人,我抓到是一直什么名字的鸟.但是我抓到了我也可以什么都不做,默默的藏着.所以也不是has to handle.
而在异常这里加锁.加锁是为了程序的同步性,再说了
根本不影响具体的 try catch/throw工作.
这个d选项.仅仅用在files上?读取文件还是对文件抛/捕捉异常?
异常是人为可以修正以及避免的.只要是人的逻辑有不足的地方就会存在异常.
最后一个 我真翻译不来.我理解是是用协议来代替编程.几个意思.不懂.

请教一个关于java的英文题目.“15.Which of the following statements”...15.Which of the following statements is true about exceptions?a) The throwing method has to handle them b) The catching method has to handle them c) You need to add an 请教一个关于java的英文题目.“1.Which of the following stat”1.Which of the following statements is true about constructors?a) A constructor must be listed straight after the fields.b) A constructor must have no parameters.c) A class can 请教一个关于java的英文题目.“16.Which of the following lines of c”...16.Which of the following lines of code defines a new panel class?a) class OutputPanel extends JPanel b) class OutputPanel inherits JPanel c) class OutputPanel impleme 请教一个函数项级数的题目 请教一个桥牌术语的英文:双明手, 帮忙看一下,这句英文怎么写?我用java语言编写了一个程序,名字叫myApp,我英文标注一下,证明软件是java编写的,应该是myApp for java 还是myApp by java 还是其他写法? 请教一道数学题,关于概率组合的题目 有谁可以帮我做一个排序算法的题目么?使用java编写 在java中,下面选项中关于java.lang.Object 类的说法错误的是( )在java中,下面选项中关于java.lang.Object 类的说法错误的是( )A、在java中,所有的JAVA类都直接继承了Object 类B、假定在定义一个类时,没有 JAVA输入三角形的三条边,判断是否是一个三角形,三角形的形状JAVA语言实现一下这个题目:输入三角形的三条边判断是否等边三角形,等腰三角形,不等边三角形; 基于JAVA的人事管理系统翻译成英文. 一个关于三角函数的题目, 一个关于浮力的题目 一个关于三角函数的题目, 一个关于亲情的题目 请教一道关于相似三角形的题目5个同样大小的正方形连成一个长方形,求∠ABC+∠ACB+∠ADC的度数. 请教一道数字信号的题目 用JAVA计算一个矩形的面积?