Java tutorial | دروس جافا 👨🏻‍🏫
2.29K subscribers
87 photos
81 videos
29 files
53 links
حبيت اشاركم كل معرفتي في الجافا ولغات اخرى فسويت هذه القناة
اتمنى أن تعود بالمنفعة عليكم🌹
لطلب حل تكاليف أو مشاريع تواصل معي على

Telegram: @abdu01010

Whatsapp: https://wa.me/967783399063

كما نقدم خدمات تسوقية في القناة مدفوعة الاجرة
..............
Download Telegram
📌الفرق بين Error و Exception

—————————————--

يمكن تلخيص الفروقات كالتالي:

التعريف:

Error:
هي مشكلات جسيمة تحدث على مستوى النظام أو البيئة، وتكون عادةً خارج سيطرة البرنامج.
—————
Exception:
هي مشكلات تحدث أثناء تشغيل البرنامج بسبب أخطاء برمجية أو مدخلات غير صحيحة، ويمكن معالجتها.
——————————————-
أمثلة:

Error:
مثل OutOfMemoryError (نفاد الذاكرة)، وStackOverflowError (تجاوز سعة المكدس).
—————
Exception:
مثل NullPointerException (محاولة الوصول إلى كائن فارغ)
وIOException (خطأ في الإدخال/الإخراج).
———————————————————
إمكانية المعالجة:

Error:
لا يستطيع المبرمج معالجة الأخطاء باستخدام الكود البرمجي، لأنها عادة تتطلب إصلاحات على مستوى النظام.
—————
Exception:
يمكن للمبرمج معالجتها باستخدام try-catch وغيرها... لمنع توقف البرنامج.
——————————————————
الأصل:

Error:
تنحدر من المكتبة
java.lang.Error.
—————
Exception:
تنحدر من المكتبة
java.lang.Exception.
—————————————-
التأثير:

Error:
عادة ما تتسبب في توقف البرنامج بالكامل.
—————
Exception:
يمكن التعامل معها، والبرنامج يستمر في التنفيذ.

————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
2👍2
Media is too big
VIEW IN TELEGRAM
1️⃣ Try-catch block


————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
👍2
Media is too big
VIEW IN TELEGRAM
2️⃣ Finally Block_ Throws Keyword_ Checked vs Unchecked Exception


————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
👍2
Media is too big
VIEW IN TELEGRAM
3️⃣ Throw keyword_ Throw vs Throws_ Throw _ finally_ Custom exception

————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
👍2
Media is too big
VIEW IN TELEGRAM
1️⃣- File Handling(java.io_ Byte _ Character stream_ InputStream _ OutputStream subclasses)

————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
Media is too big
VIEW IN TELEGRAM
2️⃣- File Handling ( FileInputStream class_ Character size vs String size )

————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
Media is too big
VIEW IN TELEGRAM
3️⃣- File Handling (FileOutputStream class_ Reading and Writing images_ Arabic letters)

————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
Media is too big
VIEW IN TELEGRAM
4️⃣- File Handling (File class)

————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
Media is too big
VIEW IN TELEGRAM
5️⃣- File Handling (File class_ Directories _Add_Remove__ Constructors)

————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
Media is too big
VIEW IN TELEGRAM
6️⃣- File Handling (Reader class_Writer class hierarchy_ FileWriter _ FileReader)

————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
Media is too big
VIEW IN TELEGRAM
7️⃣- File Handling (BufferedReader _ BufferedWriter classes_ Read file line by line)

————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
Media is too big
VIEW IN TELEGRAM
8️⃣- File Handling (PrintWriter class _Constructors _ Methods_)

————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
Media is too big
VIEW IN TELEGRAM
9️⃣- File Handling (Scanner class _Constructors _ Methods__ useDelimiter_ delimiter)

————————————————————
#Java_Level_2

Tel: @Java_tutorial0101
Media is too big
VIEW IN TELEGRAM
🔟- File Handling (Serialization and Deserialization _Read _ Write multiple objects)

————————————————————
#Java_Level_2

Tel: @Java_tutorial0101