没有合适的资源?快使用搜索试试~ 我知道了~
Java接口.pptx
0 下载量 130 浏览量
2023-07-30
03:03:47
上传
评论
收藏 2.9MB PPTX 举报
温馨提示
![preview](https://dl-preview.csdnimg.cn/88126552/0001-207cb60d779556ab2bb74c0f76645682_thumbnail.jpeg)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
42页
Java接口.pptx
资源推荐
资源详情
资源评论
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/release/download_crawler_static/88126552/bg1.jpg)
第十三章
面向对象的Java实现-接口
![](https://csdnimg.cn/release/download_crawler_static/88126552/bg2.jpg)
回顾
异常的几个关键字是什么?
异常的分类?
使用log4j需要什么步骤?
![](https://csdnimg.cn/release/download_crawler_static/88126552/bg3.jpg)
publicclassException4{
publicstaticvoidmain(String[]args){
• Scannerin=newScanner(System.in);
• System.out.print(“请输入S1的总学时:");
• inttotalTime=in.nextInt();//总学时
• try{
– System.out.print(“请输入S1的课程数目:");
– inttotalCourse=in.nextInt();//课程数目
– System.out.println(“S1各课程的平均学时为:"
– +totalTime/totalCourse);
• }catch(InputMismatchExceptione1){
– System.out.println(“INPUTNOTANUMBER!");
• }catch(ArithmeticExceptione2){
– System.out.println("Thenumberofcoursescannotbezero
!");
• }catch(Exceptione){
– System.out.println("发生错误:"+e.getMessage());
• }
}
}
输入:270H0
![](https://csdnimg.cn/release/download_crawler_static/88126552/bg4.jpg)
掌握Java接口
理解Java接口与多态的关系
掌握面向接口编程的思想
掌握常量接口的使用
掌握抽象类
学习目标
![](https://csdnimg.cn/release/download_crawler_static/88126552/bg5.jpg)
生活中的接口
电脑主板上的PCI插槽的规范就类似于Java
接口
声卡
显卡
网卡
每种卡的内部结构都不相同,可以把声卡、
网卡、显卡都插在PCI插槽上,而不用担心哪
个插槽是专门插哪个卡的
主板
剩余41页未读,继续阅读
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
zzzzl333
- 粉丝: 711
- 资源: 7万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)