-
线性表合并,将两个有序的线性表合并,合并后的线性表还是有序的...
线性表合并,将两个有序的线性表合并,合并后的线性表还是有序的-Linear form merger of the two merged in an orderly linear form, linear form after the merger or the orderly
- 2022-05-28 03:36:57下载
- 积分: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
-
PureMVC演示演示演示puremvc puremvc
PureMVC Demo PureMVC Demo-PureMVC Demo PureMVC Demo PureMVC Demo
- 2022-12-01 03:10:03下载
- 积分:1
-
classic sequencing procedures. All Northern
经典排序程序。北航所有-classic sequencing procedures. All Northern
- 2022-04-24 19:44:29下载
- 积分:1
-
比较两个目录(包括子目录)和更新,目标目录…
比较两个目录(包含子目录)并更新
1、发现目标目录缺少文件,则更新
2、发现目标目录的文件与源文件不同,则更新
3、更新时,保持与源目录结构相同-compare two directories (including subdirectories) and an update, the target directory lack of documentation, update 2, the target directory file with the source file were different, Update 3, update, and maintain the same source directory structure
- 2022-08-22 21:39:23下载
- 积分:1
-
实例04
实例04-定时发送消息-04-time messaging
- 2023-06-10 18:45:18下载
- 积分:1
-
Delphi版本的State模式范例
Delphi版本的State模式范例-Delphi version of the model example of State
- 2022-04-07 21:12:22下载
- 积分:1
-
POJ解题报告,包括对题目的分析,算法优略的评述,多种方法的提供...
POJ解题报告,包括对题目的分析,算法优略的评述,多种方法的提供-POJ Solution report, including analysis of the topic, the algorithm slightly superior to the comments of the various methods available
- 2022-10-10 12:55:03下载
- 积分:1
-
C language learning materials, it is practical, part of entry has also improve,...
C语言学习资料,很实用,有入门部分,也有提高部分,包括C++语言。-C language learning materials, it is practical, part of entry has also improve, including C++ Language.
- 2023-07-14 22:55:03下载
- 积分:1
-
基于OFDM-OQAM系统的信道估计
这是关于ofdm-oqam系统的基本框架仿真,里面不仅包含滤波器的设计,还有PAPR抑制,是学习OFDM-OQAM系统的初学者不错的选择。
- 2022-06-13 03:49:10下载
- 积分:1