-
本程序是一个例子,一个定时器计数从20使用SDL定时器功能。
This program is a example of a timer counting down from 20 using the SDL timer function
- 2022-03-23 15:18:37下载
- 积分:1
-
Primer.rar
深入C++系列
中文版
Primer.rar
深入C++系列
中文版
-C++ Primer.rar
- 2022-07-25 20:22:09下载
- 积分:1
-
vc under the Database Programming information, write a very detailed, more suita...
vc下的数据库编程资料,写的很详细,比较适合初学者使用,是入门的好教材-vc under the Database Programming information, write a very detailed, more suitable for beginners, entry is good material
- 2022-08-25 08:55:12下载
- 积分:1
-
named pipe clients FOSS
命名管道客户机源码-named pipe clients FOSS
- 2023-03-15 02:35: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
-
WinCE boot下驱动LCD的源程序,编译测试通过
WinCE boot下驱动LCD的源程序,编译测试通过-LCD driver in WinCE Eboot
- 2022-08-09 07:46:19下载
- 积分:1
-
旅游资源及线路管理系统,
用Visual+SQL写的
旅游资源及线路管理系统,
用Visual+SQL写的-tourism resources and line management system, Visual SQL write
- 2023-01-18 05:10:04下载
- 积分:1
-
一个MFC类,提供你的能力来检查无效的字符的字符串…
An MFC Class which offers you the abbility to check Strings for invalid characters 检验字符串是否含有无效字符的类-An MFC Class which offers you the abbility to check for invalid characters Strings test whether a string containing invalid characters in the category
- 2022-04-29 03:48:13下载
- 积分:1
-
android 开发
云笔记是在Android版本2.2以上开发的,里面运用json技术,解析json字符串。云笔记拥有增加,修改,删除等功能,代码简洁明了,适合初学Android开发的人可以参考
- 2022-02-27 06:44:55下载
- 积分:1
-
VB串口通讯测试源代码,可以打开、关闭端口,可以进行波特率、端口号设置,有文本和图形两种端口数据观察方式、...
VB串口通讯测试源代码,可以打开、关闭端口,可以进行波特率、端口号设置,有文本和图形两种端口数据观察方式、-VB serial communication test the source code, you can open, close the ports, can be baud rate, port number is set, there are two kinds of text and graphics port data observation method
- 2022-08-25 07:29:34下载
- 积分:1