جافا Java
6.46K subscribers
212 photos
18 videos
81 files
269 links
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Download Telegram
Write a Java code to implement a simple todo list using ArrayList.

اكتب كود جافا لتنفيذ قائمة مهام بسيطة باستخدام ArrayList.

#Collections
What is the difference between `ArrayList` and `LinkedList` in Java?

ما هو الفرق بين `ArrayList` و `LinkedList` في جافا؟

#JavaCollections #DataStructures
What is the output of the following code?
int a = 10;
int b = 20;
System.out.println(a > b ? "a is greater" : "b is greater");

ما هو ناتج تنفيذ الكود التالي؟
int a = 10;
int b = 20;
System.out.println(a > b ? "a is greater" : "b is greater");

#JavaOperators #TernaryOperator
👍1
Create a Java program to generate a simple nutrition facts label for a food item.

أنشئ برنامجاً في جافا لإنشاء ملصق حقائق غذائية بسيط لمادة غذائية.

#HealthApplications
Which of the following is the correct way to declare a multi-dimensional array in Java?

أي مما يلي هو الطريقة الصحيحة لتعريف مصفوفة متعددة الأبعاد في جافا؟

#JavaArrays #MultidimensionalArrays
What is the purpose of the `throw` keyword in Java?

ما هو الغرض من الكلمة المفتاحية `throw` في جافا؟

#JavaExceptionHandling #ThrowKeyword
👍1
Create a Java method to calculate the area of a triangle given its base and height.

أنشئ دالة في جافا لحساب مساحة مثلث بمعرفة قاعدته وارتفاعه.

#GeometryCalculations
What is the difference between `++i` and `i++` in Java?

ما هو الفرق بين `++i` و `i++` في جافا؟

#JavaOperators #IncrementOperators
👍1
Which of the following is true about the `break` statement in Java?

أي مما يلي صحيح بخصوص عبارة `break` في جافا؟

#JavaControlFlow #BreakStatement
Write a Java code to implement a simple quiz game.

اكتب كود جافا لتنفيذ لعبة اختبار بسيطة.

#SimpleGames
Which of the following is true about the `finally` block in Java?

أي مما يلي صحيح بخصوص كتلة `finally` في جافا؟

#JavaExceptionHandling #FinallyBlock
What is the purpose of the `implements` keyword in Java?

ما هو الغرض من الكلمة المفتاحية `implements` في جافا؟

#JavaInterfaces #OOP