20165313 Java programming Eighth week of study summary

Source: Internet
Author: User
Textbook Learning Summary Thread Common methods

1.start ()
2.run () defines the operations that are performed after thread-thread objects are dispatched
3.sleep (int millsecond), you must call the Sleep method in the Try-catch statement block
4.sAlive ()

There are three ways that thread synchronization threads are created by union threads, namely:

1. Inherit the thread class to create threads, you can use the method if you want to get the current thread object in the program: Thread.CurrentThread (); If you want to return the name of the thread, you can use the method: GetName ();
2. Implement runnable Interface Creation thread
3. Creating threads with callable and future

Code Hosting

Explanation of the wrong question

If the MySQL server and the MySQL administration tool reside on the same computer, the hostname can be localhost or 127.0.0.1.
My answer: false
Correct answer: TRUE
Analytical:
Book P325 (if the MySQL server and MySQL management tools reside on the same computer, the hostname can be localhost or 127.0.0.1.) )
The choice is not careful, next time you should pay attention.

Learning Impressions

No matter what course to study, meticulous is necessary or missing a quality, the last test result is not enough detail, so in the future I must be more careful study.

20165313 Java programming Eighth 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.