-
一个简单的邮件发送器
一个简单的邮件发送器-a simple mail sender
- 2022-03-11 16:24:01下载
- 积分:1
-
various file import and export out at the SQL server
各种文件导入 和导出SQLserver时列-various file import and export out at the SQL server
- 2022-01-25 19:34:49下载
- 积分:1
-
OPC客户端程序,可接受来自服务器的数据
OPC客户端程序,可接受来自服务器的数据-OPC client program, acceptable data from the server
- 2022-08-20 11:40:01下载
- 积分:1
-
Introduce the use of VB and API by many examples
用多个例子介绍vb和API的使用方法-Introduce the use of VB and API by many examples
- 2022-09-28 15:05:05下载
- 积分:1
-
using VC 6.0 text files to the right sort of small programs. Txt files to the li...
采用VC++6.0开发的对文本文档排序的小程序。将txt文档中的行按照行的第一个字符的拼音顺序排序-using VC 6.0 text files to the right sort of small programs. Txt files to the line with a line of characters in the alphabet order of ranking
- 2022-04-28 11:54:12下载
- 积分:1
-
库塔法程序,对它有个整体的描述,但是这个主要是编辑卫星运行的,没有包括界面的设置等...
库塔法程序,对它有个整体的描述,但是这个主要是编辑卫星运行的,没有包括界面的设置等-Kutta procedure, it has a description of the overall, but the major satellites are running on Edit, did not include the interface settings
- 2022-05-15 23:33:54下载
- 积分:1
-
file browers that makes you esy to navigate through files & folders
file browers that makes you esy to navigate through files & folders
- 2022-02-04 05:50:54下载
- 积分: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
-
示范如何在应用程序开始前产生标题窗口.rar
示范如何在应用程序开始前产生标题窗口.rar-demonstration of how the application procedures have started before heading window. Rar
- 2023-07-05 16:05:04下载
- 积分:1
-
This article describes an easy to use, drop
This article describes an easy to use, drop-in MFC class which replaces the standard title bar. -This article describes an easy to use, drop-in MFC class which replaces the standard title bar.
- 2022-04-26 10:58:08下载
- 积分:1