20165225 Java programming Fifth week of study summary

Source: Internet
Author: User

20165225 "Java Programming" Fifth week study summary 1. Video and textbook Learning:
- 第七章学习总结内部类:内部类的外嵌类的成员变量在内部类中仍然有效,内部类中的方法也可以调用外嵌类中的方法。内部类的类体中不可以声明类变量的类方法。外嵌类的类体中可以用内部类声明对象,作为外嵌类的成员。内部类仅供它的外嵌类使用,其他类不可以用某个类的内部类声明对象。匿名类:和子类有关的匿名类:new Bank() {匿名类的类体;};和接口有关的匿名类:new Computable() {    实现接口的匿名类的类体;};异常类:try-catch语句:try {    包含可能发生的异常语句;}catch(ExceptionSubClass1  e) {    ...}catch(ExceptionSubClass2  e) {    ...}- 第十章学习总结File类:文件的属性:File类的下列方法获取文件本身的一些信息。public String getName() 获取文件的名字。public boolean canRead() 判断文件是否是可读的。public boolean canWrite() 判断文件是否可被写入。public boolean exits() 判断文件是否存在。public long length() 获取文件的长度(单位是字节)。public String getAbsolutePath() 获取文件的绝对路径。public String getParent() 获取文件的父目录。public boolean isFile() 判断文件是否是一个普通文件,而不是目录。public boolean isDirectroy() 判断文件是否是一个目录。public boolean isHidden() 判断文件是否是隐藏文件。public long lastModified() 获取文件最后修改的时间文件字符输入、输出流:1.设定输入流的源2.创建指向源的输入流3.让输入流读取源中的数据4.关闭输入流
2. Problems in code debugging and resolution process:
    • Code hosting:

    • And the code successfully uploaded:

3. Last week's summary of the wrong title:
周一才能补上
5. Learning Experience:

Have a nice weekend.

20165225 Java programming Fifth week of study summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.