-
合并 DLL 和 EXE
åˆå¹¶ DLL å’Œ EXE-merger DLL and EXE
- 2022-07-15 08:48:35下载
- 积分: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
-
这个程序是用来测试旧的三
此程序用于测试老的三键鼠标是否工作正常,包括运行轨迹,左中右键是否按下等.因为现在的电脑不支持这种鼠标.-This procedure is used to test the old three-button mouse is working properly, including the running track, left, right, etc. is pressed. Because the computer does not support this mouse.
- 2022-03-19 13:03:42下载
- 积分:1
-
好事
跳棋游戏,很好玩的,喜欢跳棋的朋友可以下载下来加工,-GOODTHING
- 2022-04-20 12:05:40下载
- 积分:1
-
VC++6.0
INI类型文件操作实例类
VC++6.0
INI类型文件操作实例类-VC 6.0 INI file types such examples operation
- 2022-04-20 02:35:27下载
- 积分:1
-
a powerful dictionary but easy to program. Welcome to download, and you must be...
一款不错的词霸,制作简单,但是功能强大!请大家下载,一定会很happy!-a powerful dictionary but easy to program. Welcome to download, and you must be happy to use it.
- 2023-05-11 10:30:03下载
- 积分:1
-
网业文件转换成txt文件,方便阅读
网业文件转换成txt文件,方便阅读-network industry convert documents into the txt file, easy reading
- 2023-05-12 03:40:02下载
- 积分:1
-
How to get the MAC address of your network adapter.
MAC address stands for Me...
How to get the MAC address of your network adapter.
MAC address stands for Media Access Control address which is 6 bytes( 48 bits ) long. MAC address is the unique address which is used to identify network interface hardware. So how to get the MAC address of your network adapter?
- 2022-03-20 20:24:26下载
- 积分:1
-
Clock procedures, digital clock and realize the view pointer clock switching, th...
时钟程序,实现数字钟和指针时钟的视图切换,应用单文档-Clock procedures, digital clock and realize the view pointer clock switching, the application of single-document
- 2022-04-01 23:29:57下载
- 积分:1
-
windows下创建process的程序
windows下创建process的程序-windows process created under the procedures
- 2022-03-25 14:22:35下载
- 积分:1