-
simulation for chemo
simulation for chemo-taxi, the movement of bacteria towards higher
concentration of food based on biased random walk.
- 2022-05-22 06:19:30下载
- 积分:1
-
发送Email的程序
发送Email的程序-procedures
- 2022-04-30 15:21:19下载
- 积分:1
-
windows下搜索文件的源程序
windows下搜索文件的源程序-windows under search of the source document
- 2022-04-11 04:51:49下载
- 积分:1
-
用Visual Basic 6.0生成雪花的小程序
用Visual Basic 6.0生成雪花的小程序-a Procedure generating snowflake
- 2023-02-22 18:40:03下载
- 积分:1
-
java异常处理
3.8 异常处理
什么是异常
知道Java异常分类
处理异常的两种方式
throw和throws区别
如何创建自定义异常
概念:
在程序中,可能产生程序员没有预料到的各种错误情况,比如打开一个不存在的文件等,在Java中,这种在程序运行时可能出现的错误称为异常。
异常可以把“描述在正常执行过程中做什么事”的代码和“出了问题怎么办”的代码相分离
例子:demo05.ExceptionDemo.java
Java异常分类A:
java.lang.Error,java.lang.Exception
Error(错误):jvm系统内部错误、资源耗尽等严重问题,发生Error时,编程人员无能 为力,只能终止程序,例如内存溢出等。
Exception(异常):因编程错误或偶然的外在因素导致的一般性问题,例如:对负数 开平方根、空指针访问等,当发生Exception 时,编程人员可以做出处理,并做出人性 化响应,比如弹出窗口,显示“请不要输入负数!”。
异常分类B:
检查性异常:编译器必须处理的异常,该类异常通常是Exception类型或其子类(RuntimeException类除外)//运行时异常
SQLException、IOException、ClassNotFoundException
例子:/DemoProject/src/com/hyg/demo08/FileInputStreamDemo.java
非检查性异常:编译器不要求强制处理的异常,RuntimeException类及其所有子类都是非检查性异常。
NullPointerException、ClassCastException
例子:equa
- 2022-02-14 14:02:16下载
- 积分:1
-
The public method is used when you devolop B/S architecture ERP programe
开发B/S结构的ERP中用到的一些公共的方法-The public method is used when you devolop B/S architecture ERP programe
- 2022-06-30 22:02:36下载
- 积分:1
-
vs2010制作word报表的生成
基于vs2010的mfc开发,实现数据的获取和数据的输入,包括word报表和excel报表的生成,别且自动填写数据,在excel中实现柱状图和图片的添加
- 2023-05-21 22:05:07下载
- 积分:1
-
运行一个程序并等待它运行结束
运行一个程序并等待它运行结束-The example of running an application and waiting its over
- 2022-04-25 04:29:22下载
- 积分:1
-
The progress bar, through the spherical distribution of display.This class displ...
进度条,通过球状分布进行显示。这个类显示一个半透明,阴影模式进度对话框。这一进程的进展情况进行监督作为启动一个新线程,使球体更新进展顺利。如果启用,用户获得的能力,终止与ESC键的过程。该代码将运行在Windows 2000及更高版本。
-The progress bar, through the spherical distribution of display.This class displays a translucent, shadowed modal progress dialog. The process whose progress is to be monitored is started as a new thread, allowing the progress sphere to update smoothly. If enabled, the user is given the ability to terminate the process with the ESC key. The code runs on Windows 2000 and later.
- 2022-08-02 20:16:07下载
- 积分:1
-
to demonstrate ZI input method
to demonstrate ZI input method
- 2022-09-05 17:45:03下载
- 积分:1