rar

Java exception handling PPT courseware

  • 2013-09-22
  • 119.37KB
  • Points it Requires : 2

Java exception handling: When to use exception mechanism? nWhen the method cannot complete its task due to reasons beyond its control nThe file does not exist, the network connection cannot be established... nHandle exceptions thrown in methods, class libraries, and classes nFor example, FileInputStream.read generates IOException nWhen a unified approach is used to handle exceptions in large projects nFor example, writing a word processor nExceptions should be failures that do not occur frequently but may occur nEvents that are bound to occur should not be handled with exception mechanism nException handling is used to recover the system from failures nPrompt information/do not produce invalid results/release resources

unfold

You Might Like

Uploader
nkyqsl
 

Recommended ContentMore

Popular Components

Just Take a LookMore

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
×