当前位置:网站首页>Day-15 common APIs and exception mechanisms

Day-15 common APIs and exception mechanisms

2022-07-07 12:36:00 Xiaobai shelter

1.BigInteger
① effect : When int and long Class cannot satisfy the storage , use BigInteger Used to represent special integers
② Use : You must pass in the string
 Insert picture description here
2.Math
① Common methods and use
 Insert picture description here
② Example use Math Realization a~z Random generation
 Insert picture description here
3. Exception mechanism
① Anomalies encountered a. Null pointer exception b. Subscript out of range exception c. Type conversion exception d. Stack memory overflow
② Concept and operation mode
 Insert picture description here
③ Inheritance system
 Insert picture description here
④try…catch…
Grammar format :
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here

⑤throws
 Insert picture description here
⑥finally
 Insert picture description here
 Insert picture description here
⑦ There can be no broader exceptions
 Insert picture description here

原网站

版权声明
本文为[Xiaobai shelter]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130617040595.html