16 lines
615 B
Markdown
16 lines
615 B
Markdown
---
|
||
title: Throw
|
||
localeTitle: يرمي
|
||
---
|
||
## يرمي
|
||
|
||
يتم استخدام الكلمة الأساسية throw Java لرمي استثناء بشكل صريح.يمكنك التخلص من الاستثناء المحدد أو غير المحظوظ في java بإلقاء الكلمة الرئيسية. يتم استخدام الكلمة الأساسية throw لإلقاء الاستثناء المخصص.
|
||
|
||
**_مثال:_**
|
||
|
||
`throw new ArithmeticException("/ by zero not permitted");
|
||
`
|
||
|
||
##### المزيد من الموارد
|
||
|
||
[المهوسون المهوسون](https://www.geeksforgeeks.org/throw-throws-java/) |