下面这段程序看不懂 谁能大概解释下的import java.io.*;class J_Exception extends Exception { } public class J_Test { public static void main(String[] args) { try { int i = System.in.read(); if(i == '0') throw new J_Exception(); //手动

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/13 01:21:51
下面这段程序看不懂 谁能大概解释下的import java.io.*;class J_Exception extends Exception { } public class J_Test { public static void main(String[] args) { try { int i = System.in.read(); if(i == '0') throw new J_Exception(); //手动

下面这段程序看不懂 谁能大概解释下的import java.io.*;class J_Exception extends Exception { } public class J_Test { public static void main(String[] args) { try { int i = System.in.read(); if(i == '0') throw new J_Exception(); //手动
下面这段程序看不懂 谁能大概解释下的
import java.io.*;
class J_Exception extends Exception {
} public class J_Test {
public static void main(String[] args)
{ try { int i = System.in.read(); if(i == '0')
throw new J_Exception(); //手动抛出异常
System.out.print("1");
}catch(IOException ex) {
System.out.print("2");
}catch(J_Exception ex) {
System.out.print("3");
}finally
{ System.out.println("4");
}
}
}
为什么当输入0时得到34

下面这段程序看不懂 谁能大概解释下的import java.io.*;class J_Exception extends Exception { } public class J_Test { public static void main(String[] args) { try { int i = System.in.read(); if(i == '0') throw new J_Exception(); //手动
你这不是写的很清楚了么.

class J_Exception extends Exception {

}

public class J_Test {
public static void main(String[] args) {
try {
int i = System.in.read();
if (i == '0') // 因为你输入的是0,所以这个判断为真,抛出下面的异常
throw new J_Exception(); // 手动抛出异常
System.out.print("1");
} catch (IOException ex) {
System.out.print("2");
} catch (J_Exception ex) { // 在这里捕获异常,所以输出3
System.out.print("3");
} finally {
System.out.println("4"); // 这句一定会被执行, 所以输出4 
}
}
}

下面这段程序看不懂 谁能大概解释下的import java.io.*;class J_Exception extends Exception { } public class J_Test { public static void main(String[] args) { try { int i = System.in.read(); if(i == '0') throw new J_Exception(); //手动 im not comment on it.谁能给我解释下,领导发的我看不懂:( 看不懂能解释下下面的流程吗 谁能解释下什么是实验范式,与实验方法,实验程序有何区别,不要书上的定义,看不懂 谁能给解释一下下面程序的解释是什么意思 谁能解释下睡袋的温标看不懂啊 帮我解释下下面这段代码的意思 求....下面的解释看不懂.... 谁能解释下下面话的意思?为什么? 谁看的懂下面的这段程序的,麻烦帮我解释下,ret.MoveFirst ret.Find name =' & Combo1.Text & ' pt = ret(password) pa = pt If txtPassword = pa Then 'frmSplash.show LoginSucceeded = True Me.Hide frmMain.Show Unload Me Else MsgBox 下面这段程序怎么解释?use adventureworksgoupdate person.address set city='Boston' where addressid=1请一句一句解释,特别是第一句这是数据库里面的一段程序 求MATLAB数字图像特征提取的程序求一段用MATLAB编写的数字图像特征提取的程序这段程序看不懂,怎么用呢? 化学书上有句话看不懂.下面的二段的第一句话不明白.这是分析化学书上的.希望懂的人能解释下为什么滴强酸时没误差. 想学NCN,谁能把NCN机床上的按键英文翻译下,程序的字母解释下,我一点不懂,谁来翻译和解释下 西门子PLC中程序段分析,给解释下意思,L是装载,T是传送,后面的怎么解释? 请求帮我详细解释下面的vfp代码本人没有vfp基础,有段vfp程序看不懂,请求帮忙,要详细的解释哦~ public ss,t,a1,a2,b1,b2,s1,s2,s0,p1,p2,aaaa,bbbb,cccc,dddd,ffff,eeee,lzj aaaa=1 bbbb=2 cccc=3 dddd=4 eeee=5 ffff=6 a1 她叫''梦''——谁能解释下她写的什么意思,我看不懂…… 环流定理证明看不懂书本上的红色等号这俩步看不懂,谁能解释下怎么推过去的,这dr的物理意义是什么,最后又为什么等于0