JAVA learning anomalies, threads

Chapter One Abnormalities

 

1.1 Abnormal system

 

 

 

 

 

 1.2 Anomaly classification


 

 

Chapter 2 Handling of Exceptions

 

 

throws appears in the method function header; throw appears in the function body.

throws indicates a possibility of an exception, and these exceptions do not necessarily occur; throw means an exception is thrown, and execution of throw must throw some kind of exception object.

 

 

2.1 Catch exception try {} catch () {}

 

 

 

2.2 finally code block

 

 

2.3 Notes

   

 

 

 

 

 


 

 

Chapter 3 Multithreading

 

3.1 Concurrency and parallelism

 

 

 

3.2 Threads and processes

 

3.3 Create a thread class

 

 

Guess you like

Origin www.cnblogs.com/honghui-cai/p/12696714.html