Java I About the Tutorial


Java – Exceptions .................................................................................................................................. 275


Download 1.04 Mb.
Pdf ko'rish
bet11/30
Sana16.06.2023
Hajmi1.04 Mb.
#1491611
1   ...   7   8   9   10   11   12   13   14   ...   30
Bog'liq
java tutorial

19.
Java – Exceptions .................................................................................................................................. 275
Exception Hierarchy..................................................................................................................................... 276
Built-in Exceptions ....................................................................................................................................... 277
Exceptions Methods .................................................................................................................................... 279
Catching Exceptions ..................................................................................................................................... 280
Multiple Catch Blocks .................................................................................................................................. 281
Catching Multiple Type of Exceptions ......................................................................................................... 282
The Throws/Throw Keywords ..................................................................................................................... 282
The Finally Block .......................................................................................................................................... 283
The try-with-resources ................................................................................................................................ 285
User-defined Exceptions .............................................................................................................................. 287
Common Exceptions .................................................................................................................................... 290
20.
Java – Inner Classes ............................................................................................................................... 291
Nested Classes ............................................................................................................................................. 291
Inner Classes (Non-static Nested Classes) ................................................................................................... 292
Accessing the Private Members .................................................................................................................. 293
Method-local Inner Class ............................................................................................................................. 294
Anonymous Inner Class ............................................................................................................................... 295
Anonymous Inner Class as Argument .......................................................................................................... 296
Static Nested Class....................................................................................................................................... 297
JAVA - OBJECT ORIENTED ........................................................................................................ 299

Download 1.04 Mb.

Do'stlaringiz bilan baham:
1   ...   7   8   9   10   11   12   13   14   ...   30




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling