20165115 2017-2018-2 "Java Programming" Fifth Week study summary

Source: Internet
Author: User
20165115 2017-2018-2 "Java program design" Fifth week study summary textbook study summary

The seventh part of the study is the inner class and the exception class. Among them, the exception class has a great effect on solving the error condition. Especially in the actual operation of some large programs, if you do not do boundary detection, so that the program to respond to possible error conditions, it is likely to lead to the actual operation of a variety of problems. I summed up the contents of the seventh chapter a bit:

  • Try-catch statements
    • Java uses the Try-catch statement to handle exception cases. Where the try part puts in a possible exception, when one of the method calls has an exception, the try part ends execution and the corresponding catch part is executed instead.

The tenth chapter is about how to resolve incoming data from external or other programs, and how to manipulate files.

Problems in code debugging and the resolution process
  • Issue 1: In the use of Lou teacher provided code in the virtual machine debugging, there will be coding problems caused by the Chinese characters garbled. And because the direct invocation of these file encoding has been fixed, even after the change will produce new garbled characters.
  • Problem 1 Solution: At the moment I have not found the root cause of the problem of garbled. However, there are many ways to avoid garbled characters. For example, do not use the file directly, or hit the code yourself.
Code Hosting

20165115 2017-2018-2 "Java Programming" Fifth Week 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.