20145321 Java Programming 5th Week of study summary

Source: Internet
Author: User

20145321 "Java program Design" 5th Week study summary textbook Study content summary eighth chapter
 1.Try、catch:Java中所有错误都会被打包为对象,通过try和catch语法可以对代表错误的对象做处理。 2.包装成对象的错误都是可抛出的(通过throw语法),设计错误对象都继承自java.lang.Throwable类,其子类为 java.lang.Error与java.lang.Exception。 3.如果方法设计流程中发生异常,而你没有充足的信息来知道如何处理,可以抛出异常,让调用方法的客户端来处理。 处理完 部分错误后,可以使用throw将异常再抛出,但必须在方法上使用throws声明。 4.可以使用printstacktrace来进行错误的追踪,要善用stacktrace。用fillinstacktrace()方法可以重新装填异常 堆栈,将起点设为重抛异常的地方,并返回throwable对象。 5.无论try区块中有误发生异常,若有finally区块,则finally区块一定会被执行。另外注意如果程序流程中先return 了,同时有finally区块,那会先执行finally区块再返回值。
Nineth Chapter
 1.记录每个对象的索引顺序并能依索引取回对象,这样的行为定义在java.lang.list中;如果希望对象不重复,则由 java.util.Set定义;如果以队列方式,使用java.lang.Queue。 2.数组在内存中是连续的线性空间,排序数组时用ArrayList可以得到较好的速度表现。 3.ArrayList与LinkedList的区别:一个是顺序存储结构,一个是链式存储结构。 4.收集对象时加入尾端,取得对象时从前段,Queue自己定义了offer、poll、peak等方法。 5.常用的Map操作类有HashMap,TreeMap和Properties。
Problems in teaching materials learning and the solving process

Because the vacation, did not look carefully, only probably wrote some content, knocked some code just.

Problems in code debugging and the resolution process

Code Hosting

Learning progress Bar /Cumulative) new/cumulative)
lines of code (newBlog volume (Learning time (new/cumulative) Important growth
target 3500 Line 28 300 hours  
first week 150/150 1/2 20/20  
second week 150/250 1/3 20/40  
third week 150/300 1/4 20/60  
fourth week /td> 250/500 1/5 20/80  
fifth week 200/800 1/6 10/90

20145321 Java Programming 5th 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.