What is the difference between `ArrayList` and `LinkedList` in Java?
ما هو الفرق بين `ArrayList` و `LinkedList` في جافا؟
#JavaCollections #DataStructures
ما هو الفرق بين `ArrayList` و `LinkedList` في جافا؟
#JavaCollections #DataStructures
جافا Java
What is the difference between `ArrayList` and `LinkedList` in Java? ما هو الفرق بين `ArrayList` و `LinkedList` في جافا؟ #JavaCollections #DataStructures
What is the output of the following code?
ما هو ناتج تنفيذ الكود التالي؟
#JavaOperators #TernaryOperator
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
أنشئ برنامجاً في جافا لإنشاء ملصق حقائق غذائية بسيط لمادة غذائية.
#HealthApplications
Which of the following is the correct way to declare a multi-dimensional array in Java?
أي مما يلي هو الطريقة الصحيحة لتعريف مصفوفة متعددة الأبعاد في جافا؟
#JavaArrays #MultidimensionalArrays
أي مما يلي هو الطريقة الصحيحة لتعريف مصفوفة متعددة الأبعاد في جافا؟
#JavaArrays #MultidimensionalArrays
جافا Java
Which of the following is the correct way to declare a multi-dimensional array in Java? أي مما يلي هو الطريقة الصحيحة لتعريف مصفوفة متعددة الأبعاد في جافا؟ #JavaArrays #MultidimensionalArrays
اختر الإجابة الصحيحة
Anonymous Quiz
21%
int matrix[][] = new int[][];
29%
int[][] matrix = new int[][];
34%
int matrix[][] = new int[3][3];
16%
int[][] matrix = {1,2,3,4};
❤3
What is the purpose of the `throw` keyword in Java?
ما هو الغرض من الكلمة المفتاحية `throw` في جافا؟
#JavaExceptionHandling #ThrowKeyword
ما هو الغرض من الكلمة المفتاحية `throw` في جافا؟
#JavaExceptionHandling #ThrowKeyword
👍1
جافا Java
What is the purpose of the `throw` keyword in Java? ما هو الغرض من الكلمة المفتاحية `throw` في جافا؟ #JavaExceptionHandling #ThrowKeyword
اختر الإجابة الصحيحة
Anonymous Quiz
22%
To catch exceptions
15%
To define a new exception class
37%
To explicitly throw an exception
27%
To declare that a method might throw an exception
1
Create a Java method to calculate the area of a triangle given its base and height.
أنشئ دالة في جافا لحساب مساحة مثلث بمعرفة قاعدته وارتفاعه.
#GeometryCalculations
أنشئ دالة في جافا لحساب مساحة مثلث بمعرفة قاعدته وارتفاعه.
#GeometryCalculations
What is the difference between `++i` and `i++` in Java?
ما هو الفرق بين `++i` و `i++` في جافا؟
#JavaOperators #IncrementOperators
ما هو الفرق بين `++i` و `i++` في جافا؟
#JavaOperators #IncrementOperators
👍1
جافا Java
What is the difference between `++i` and `i++` in Java? ما هو الفرق بين `++i` و `i++` في جافا؟ #JavaOperators #IncrementOperators
Which of the following is true about the `break` statement in Java?
أي مما يلي صحيح بخصوص عبارة `break` في جافا؟
#JavaControlFlow #BreakStatement
أي مما يلي صحيح بخصوص عبارة `break` في جافا؟
#JavaControlFlow #BreakStatement
جافا Java
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
اكتب كود جافا لتنفيذ لعبة اختبار بسيطة.
#SimpleGames
Which of the following is true about the `finally` block in Java?
أي مما يلي صحيح بخصوص كتلة `finally` في جافا؟
#JavaExceptionHandling #FinallyBlock
أي مما يلي صحيح بخصوص كتلة `finally` في جافا؟
#JavaExceptionHandling #FinallyBlock
جافا Java
Which of the following is true about the `finally` block in Java? أي مما يلي صحيح بخصوص كتلة `finally` في جافا؟ #JavaExceptionHandling #FinallyBlock
اختر الإجابة الصحيحة
Anonymous Quiz
22%
It is executed only if an exception occurs
19%
It is executed only if no exception occurs
44%
It is always executed, whether an exception occurs or not
15%
It is optional in a try-catch block
👍1
What is the purpose of the `implements` keyword in Java?
ما هو الغرض من الكلمة المفتاحية `implements` في جافا؟
#JavaInterfaces #OOP
ما هو الغرض من الكلمة المفتاحية `implements` في جافا؟
#JavaInterfaces #OOP
Write a Java code to implement a simple library management system.
اكتب كود جافا لتنفيذ نظام إدارة مكتبة بسيط.
#SimpleApplications
اكتب كود جافا لتنفيذ نظام إدارة مكتبة بسيط.
#SimpleApplications