جافا Java
前往频道在 Telegram
6 169
订阅者
-124 小时
-177 天
-6830 天
帖子存档
6 169
Which of the following is a valid Java statement to check if 'x' is either 10 or 20?
أي من الأتي هو عبارة جافا صالحة للتحقق مما إذا كان 'x' هو 10 أو 20؟
6 169
What is the purpose of the `super` keyword in Java?
ما هو الغرض من الكلمة الرئيسية `super` في جافا؟
6 169
Write the code to create a program that simulates a simple restaurant ordering system, allowing users to place orders, view the menu, and calculate the total cost.
اكتب الكود لإنشاء برنامج يحاكي نظام طلب طعام في مطعم بسيط، ويسمح للمستخدمين بتقديم الطلبات، وعرض قائمة الطعام، وحساب التكلفة الإجمالية.
6 169
How do you access the length of an array named `arr` in Java?
كيف تصل إلى طول مصفوفة تسمى `arr` في جافا؟
6 169
Which collection interface represents a group of objects as a single unit in Java?
أي واجهة تجميع تمثل مجموعة من الكائنات كوحدة واحدة في جافا؟
6 169
What is the result of the expression `3 + 2 * 4` in Java?
ما هو نتيجة التعبير `3 + 2 * 4` في جافا؟
6 169
Which method is called when an object is created in Java?
أي طريقة تسمى عند إنشاء كائن في جافا؟
6 169
Write the code to create a program that reads a sequence of integers from the user and calculates their sum, average, minimum, and maximum values.
اكتب الكود لإنشاء برنامج يقرأ تسلسل من الأعداد الصحيحة من المستخدم ويحسب مجموعها، ومتوسطها، والقيمة الصغرى، والقيمة القصوى.
6 169
What keyword is used to access a method or variable from the superclass in a subclass?
أي كلمة مفتاحية تستخدم للوصول إلى طريقة أو متغير من الفئة الأساسية في الفئة الفرعية؟
6 169
In Java, which operator is used for logical AND operation?
في جافا، أي عامل يستخدم لعملية AND المنطقية؟
6 169
Write the code to define an abstract class 'Shape' with an abstract method 'calculateArea()' in Java.
اكتب الكود لتعريف فئة مجردة 'Shape' مع طريقة مجردة 'calculateArea()' في جافا.
