Which interface must a class implement to be used in a 'for-each' loop in Java?
Anonymous Quiz
45%
Iterable
25%
Collection
27%
List
3%
Enumerator
❤1
Write a Java program to print all the elements of a two-dimensional integer array named 'matrix'.
اكتب برنامج جافا لطباعة جميع عناصر مصفوفة ثنائية الأبعاد من الأعداد الصحيحة باسم 'matrix'.
اكتب برنامج جافا لطباعة جميع عناصر مصفوفة ثنائية الأبعاد من الأعداد الصحيحة باسم 'matrix'.
Which statement creates a new array in Java?
Anonymous Quiz
65%
int[] array = new int[5];
10%
int array = new int[5];
21%
int[] array = {1, 2, 3, 4, 5};
4%
array[] = new int[5];
What is the result of the following code snippet?
ما هو نتيجة قطعة الكود التالية؟
int x = 5;
int y = 10;
System.out.println(x > 6 || y <= 10);
ما هو نتيجة قطعة الكود التالية؟
int x = 5;
int y = 10;
System.out.println(x > 6 || y <= 10);
In Java 8, what is the purpose of the 'default' keyword in interfaces?
Anonymous Quiz
43%
To define a default implementation of a method
21%
To set default values for variables
15%
To indicate default access modifier
21%
To create default methods that must be overridden
How does a 'for-each' loop differ from a standard 'for' loop in Java?
كيف يختلف حلقة 'for-each' عن حلقة 'for' القياسية في جافا؟
كيف يختلف حلقة 'for-each' عن حلقة 'for' القياسية في جافا؟
❤1
In Java, what is the result of assigning a 'null' value to a primitive data type?
Anonymous Quiz
25%
Compilation error
40%
NullPointerException
14%
Runtime error
20%
None of the above
جافا Java
أعطونا اقتراحاتكم ايش تحبوا اضيف او اذا مواد ثانيه تحبون نحطها
احتاج مجموعة تجرب معي هذا البوت اللي فاضي يرسل لي @Mushtak9
What is 'autoboxing' in Java?
Anonymous Quiz
41%
Automatically converting a primitive data type into its corresponding wrapper class
29%
Automatically converting an object into its corresponding primitive data type
16%
A feature of OOP to encapsulate and hide data
14%
A technique for memory management in arrays
What is an infinite loop, and how can it be caused in Java?
ما هو الحلقة اللانهائية، وكيف يمكن أن تسبب في جافا؟
ما هو الحلقة اللانهائية، وكيف يمكن أن تسبب في جافا؟
What does the 'volatile' keyword in Java ensure?
Anonymous Quiz
39%
The variable can be accessed by multiple threads simultaneously
21%
The variable will be stored in the CPU cache for faster access
11%
Changes to the variable are visible to all threads
29%
The variable is not cached, and its value is always read from the main memory
How do you declare a two-dimensional array in Java?
كيف تعلن عن مصفوفة ثنائية الأبعاد في جافا؟
كيف تعلن عن مصفوفة ثنائية الأبعاد في جافا؟
This media is not supported in your browser
VIEW IN TELEGRAM
أخيرا البوت صار جاهز وفيه عده مواد اسئله اختبارات على شكل مسابقه جربوه واعطونا التقيم
@CodesBattlebot
@CodesBattlebot
👍6
What is the primary difference between a 'HashSet' and a 'TreeSet' in Java Collections Framework?
Anonymous Quiz
42%
'HashSet' maintains elements in insertion order, while 'TreeSet' sorts the elements
19%
'HashSet' allows duplicate elements, while 'TreeSet' does not
6%
'HashSet' is faster than 'TreeSet'
32%
'HashSet' sorts the elements, while 'TreeSet' maintains the elements in insertion order
What is the output of the following Java code?
ما هو مخرجات الكود الجافا التالي؟
for(int i = 0; i < 5; i++) {
if(i % 2 == 0) {
System.out.println(i);
}
} ما هو مخرجات الكود الجافا التالي؟
for(int i = 0; i < 5; i++) {
if(i % 2 == 0) {
System.out.println(i);
}
}Which loop is best suited for iterating through an array in Java?
Anonymous Quiz
59%
for loop
10%
while loop
5%
do-while loop
27%
all of the above
Determine the output of this Java code:
حدد مخرجات هذا الكود الجافا:
int[] numbers = {1, 2, 3, 4, 5};
for (int i = numbers.length - 1; i >= 0; i--) {
System.out.print(numbers[i] + "");
} حدد مخرجات هذا الكود الجافا:
int[] numbers = {1, 2, 3, 4, 5};
for (int i = numbers.length - 1; i >= 0; i--) {
System.out.print(numbers[i] + "");
}