جافا Java
6.46K subscribers
212 photos
18 videos
81 files
269 links
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Download Telegram
Write the code to implement a recursive algorithm to traverse a binary tree and print its elements in a specific order (e.g., pre-order, in-order, or post-order).

اكتب الكود لتنفيذ خوارزمية متكررة لجولة شجرة ثنائية وطباعة عناصرها بترتيب محدد (مثل الترتيب الأمامي، أو الترتيب الداخلي، أو الترتيب البعدي).
Which of the following is not a loop construct in Java?

أي من الأتي ليس بناء حلقة في جافا؟
What is the default value of an int variable declared as an instance variable in a class in Java?

ما هي القيمة الافتراضية لمتغير صحيح تم تعريفه كمتغير فردي في فئة في جافا؟
Write the code to define an interface 'Drawable' with a method 'draw()' and implement it in a class 'Circle' in Java.

اكتب الكود لتعريف واجهة 'Drawable' مع طريقة 'draw()' وتنفيذها في فئة 'Circle' في جافا.
How do you declare a method in Java that takes an integer as input and returns an integer?

كيف تعلن عن طريقة في جافا تأخذ عددًا صحيحًا كإدخال وتعيد عددًا صحيحًا؟
Write the code to create a program that simulates a simple online store, allowing users to browse products, add items to a shopping cart, and complete a purchase.

اكتب الكود لإنشاء برنامج يحاكي متجرًا إلكترونيًا بسيطًا، ويسمح للمستخدمين بتصفح المنتجات، وإضافة العناصر إلى عربة التسوق، واستكمال عملية الشراء.
1
What is the correct way to declare a variable of type double in Java?

ما هو الطريقة الصحيحة لتعريف متغير من نوع double في جافا؟
What is the base class of all classes in Java?

ما هي الفئة الأساسية لجميع الفئات في جافا؟
Write the code to implement a binary search tree data structure, including methods to insert, search, and traverse elements.

اكتب الكود لتنفيذ بنية بيانات شجرة البحث الثنائية، بما في ذلك طرق لإدراج، والبحث، واجتياز العناصر.
Which of the following loops will run indefinitely in Java?

أي من الحلقات التالية ستعمل بشكل لا نهائي في جافا؟
What is the correct syntax to declare an interface in Java?

ما هو الصيغة الصحيحة لتعريف واجهة في جافا؟
Write the code to create a program that simulates a simple event management system, allowing users to create events, add attendees, and track attendance.

اكتب الكود لإنشاء برنامج يحاكي نظام إدارة أحداث بسيطًا، ويسمح للمستخدمين بإنشاء أحداث، وإضافة الحاضرين، وتتبع الحضور.
What is the correct way to create a read-only property in a class in Java?

ما هو الطريقة الصحيحة لإنشاء خاصية للقراءة فقط في فئة في جافا؟