题海让大学四年没有难题
白天模式登陆

题目详情

单选题 在Java异常处理中经常存在与下述代码片段类似的代码: try { …… } catch(ArithmeticException are) { System.out.println("算术错误!"); } catch(ClassNotFoundException e1) { System.out.println("类没有找到!"); } catch(SQLException e2) { System.out.println("数据库操作错误!"); } 分析上述代码,在Java异常处理机制中蕴含了( )设计模式

A. 观察者 (Observer)

B. 职责链 (Chain of Responsibility)

C. 命令 (Command)

D. 迭代器 (Iterator)

软件体系结构与设计模式课程封面

学科:软件体系结构与设计模式

时间:2024-06-27 05:09:30

Copyright © 2022 津ICP备2021001502号