虫虫首页|资源下载|资源专辑|精品软件
登录|注册

try

  • 实验12 异常处理 12.1 实验目的 (1)掌握异常处理的编程特点。 (2)了解Java异常分类层次

    实验12 异常处理 12.1 实验目的 (1)掌握异常处理的编程特点。 (2)了解Java异常分类层次,常见系统异常。 (3)了解自定义异常的定义及方法异常的抛出与处理。 12.2 知识要点 Java把异常加入Java语言的体系结构,为异常定义了类和关键字,简化了错误处理代码。将错误处理从正常的控制流中分离出来,对错误实施统一处理。 12.2.1异常处理结构 try { 语句块; } catch (异常类名1 参变量名) { 语句块; } catch (异常类名2 参变量名) { 语句块; } finally { 语句块; } 说明: (1)finally总是执行,它是异常处理的统一出口,常用来实现资源释放,文件关闭等。 (2)发生异常时try块内的后续语句不再执行; (3)catch按照次序进行匹配检查处理,找到一个匹配者,不再找其它;catch的排列要按照先个别化再一般化的次序。不能将父类异常排在前、子类异常排在后。 12.2.2 常见系统异常 常见系统异常如表12-1所示。 表12-1 常见系统异常

    标签: 12.1 Java 实验 异常处理

    上传时间: 2013-12-09

    上传用户:jhksyghr

  • 学生公寓管理系统使用说明: 1.服务器运行环境 SQL 2000 .NET FRAMEWORK 1.1 .NET FRAMEWORK 1.1 CHINESE (SIMPL

    学生公寓管理系统使用说明: 1.服务器运行环境 SQL 2000 .NET FRAMEWORK 1.1 .NET FRAMEWORK 1.1 CHINESE (SIMPLIFIED) LANGUAGE WINDOWS信使 IIS 开发环境:Windows XP Microsoft Visual Studio .NET 2003 SQL Server 2000 2.使用方法 附数据库Manage,文件夹为DB,用户名为sa,密码为空。 3.通过信使将Manage文件夹添加为虚拟目录。 起始页是Login.aspx 网站的系统管理员帐号和密码分别是: admin admin 网站的管理员帐号和密码有很多,其中一个是:1 1 网站的学生帐号和密码有很多,其中一个是: 3 12345678 制作说明: 1.由于时间仓促,为了做一个完整的系统,做的这个系统没有用基本的三层架构或基本的MVC架构,而是用的一层 2.本系统参考了自己曾经做过网站,系统的代码,并不是从无到有的做出来的 3.为了在短时间实现了最为基本的功能,本网站做的比较粗糙,里面有隐患的bug,我没有用 try{} catch{} finally{} 捕捉,所以在调试的时候,难免会报错 4.还是由于时间的仓促,网站的所有网页,出了图片之外,都在根目录下,见笑了

    标签: FRAMEWORK 1.1 NET CHINESE

    上传时间: 2016-10-31

    上传用户:eclipse

  • If you are using Internet Explorer on Windows XP Service Pack 2, there is a security restriction dis

    If you are using Internet Explorer on Windows XP Service Pack 2, there is a security restriction disallowing scripts to run in files opened on your local machine. When you first try to run the examples, you will most likely get a message saying, "To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer." To see the example, you must click on the message and select "Allow Blocked Content". JavaScript高级程序设计 里面自代源码

    标签: restriction Explorer Internet security

    上传时间: 2016-11-18

    上传用户:源弋弋

  • Many of the pattern fi nding algorithms such as decision tree, classifi cation rules and c

    Many of the pattern fi nding algorithms such as decision tree, classifi cation rules and clustering techniques that are frequently used in data mining have been developed in machine learning research community. Frequent pattern and association rule mining is one of the few excep- tions to this tradition. The introduction of this technique boosted data mining research and its impact is tremendous. The algorithm is quite simple and easy to implement. Experimenting with Apriori-like algorithm is the fi rst thing that data miners try to do.

    标签: 64257 algorithms decision pattern

    上传时间: 2014-01-12

    上传用户:wangdean1101

  • This document contains official rules of the 3D soccer simulation competition at RoboCup 2006. Whil

    This document contains official rules of the 3D soccer simulation competition at RoboCup 2006. While we will try to cover all cases, if unexpected events do occur, the rule committee will seek input from the participants and then make a decision. However, once the committee has made a decision, that decision is final and will not be open to further discussion

    标签: competition simulation document contains

    上传时间: 2016-11-30

    上传用户:zhengzg

  • Please read this document before attempting to compile and run the libraries and applications! The p

    Please read this document before attempting to compile and run the libraries and applications! The projects must be compiled in a particular order. Standard support questions are about compiler and/or linker errors that are generated when users try to compile the projects in the wrong order. Other information of interest is available here, so read the entire document fi rst. Wild Magic Version 2.1 is what ships with the fi rst printing of the Game Physics book. Some of the applications that are referenced in the book did not make it onto the CD–ROM for the book. Version 2.2 contains those applications, plus more

    标签: applications attempting and libraries

    上传时间: 2014-01-16

    上传用户:Late_Li

  • 课本异常处理实例。各种异常处理

    课本异常处理实例。各种异常处理,try...throw,throws。。。清华大学出版那本。

    标签: 异常处理

    上传时间: 2014-01-06

    上传用户:chenjjer

  • A "code-what"? Unless you have spent some time working in the area of reverse engineering, chances a

    A "code-what"? Unless you have spent some time working in the area of reverse engineering, chances are you have not heard of the term "codecave" before. If you have heard of it, you might not have read a clear definition of it or quite understand what it is or why it is useful. I have even asked seasoned assembly programmers about the term before and most of them had not heard of it. If it is new to you, do not worry, you are not the only one. It is a term that is scarcely used and is only useful in a reverse engineering context. Furthermore, is it "codecave" or "code cave"? I am not quite sure, but I will try my best to refer to it consistently as a "codecave". A space may sneak in there from time to time

    标签: engineering code-what chances reverse

    上传时间: 2014-01-17

    上传用户:hn891122

  • observable distribution grid are investigated. A distribution grid is observable if the state of th

    observable distribution grid are investigated. A distribution grid is observable if the state of the grid can be fully determined. For the simulations, the modified 34-bus IEEE test feeder is used. The measurements needed for the state estimation are generated by the ladder iterative technique. Two methods for the state estimation are analyzed: Weighted Least Squares and Extended Kalman Filter. Both estimators try to find the most probable state based on the available measurements. The result is that the Kalman filter mostly needs less iterations and calculation time. The disadvantage of the Kalman filter is that it needs some foreknowlegde about the state.

    标签: distribution observable grid investigated

    上传时间: 2014-12-07

    上传用户:ls530720646

  • KBASIC is a BASIC like interpreter. It s implemented in C. The file includes the source code, execut

    KBASIC is a BASIC like interpreter. It s implemented in C. The file includes the source code, executable and various .bas files as examples. To try write basic.exe and the name of one of the .bas files and KBASIC will interpret the file.

    标签: C. interpreter implemented includes

    上传时间: 2017-03-25

    上传用户:xzt