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