Which of the following is a functional interface in Java?
Anonymous Quiz
9%
Runnable
23%
Comparable
17%
Serializable
51%
Both A and B
What will be the output of the following Java code snippet?
ماذا سيكون مخرجات قطعة الكود الجافا التالية؟
String[] animals = {"Dog", "Cat", "Horse"};
for(String animal : animals) {
System.out.println(animal);
} ماذا سيكون مخرجات قطعة الكود الجافا التالية؟
String[] animals = {"Dog", "Cat", "Horse"};
for(String animal : animals) {
System.out.println(animal);
}❤2
Which Java collection class is typically used for a LIFO (Last-In-First-Out) stack implementation?
Anonymous Quiz
35%
ArrayList
21%
LinkedList
32%
Queue
13%
Deque
In Java, what does the 'this' keyword refer to?
في جافا، إلى ماذا تشير كلمة 'this'؟
في جافا، إلى ماذا تشير كلمة 'this'؟
🎉2
In Java, which method is called when an object is created?
Anonymous Quiz
7%
init()
6%
Java()
30%
main()
57%
constructor()
How do you create an immutable class in Java?
كيف تقوم بإنشاء فئة غير قابلة للتغيير في جافا؟
كيف تقوم بإنشاء فئة غير قابلة للتغيير في جافا؟
❤1
What is the default value of an int array in Java?
Anonymous Quiz
52%
0
32%
null
5%
-1
10%
Not defined
المبرمجين الجدد حملوا النتبينز والجافا بهذي الطريقه واشتركوا بالقناة ممكن تفيدكم
https://youtu.be/u-AtTJUHXZ8?si=ZZz67xGX3cnfRGsZ
https://youtu.be/u-AtTJUHXZ8?si=ZZz67xGX3cnfRGsZ
YouTube
تحميل النتبينز
طريقة تحميل برنامج النتبينز مع ال jdk مع حل المشاكل وتغير حجم الخط وفتح اول مشروع بلغة الجافا
👍2❤1🔥1
What is the main difference between 'throw' and 'throws' in Java?
Anonymous Quiz
49%
'throw' is used to declare an exception, while 'throws' is used to explicitly throw an exception
25%
'throw' is used within a method, and 'throws' is used with the method signature
18%
'throws' is used to handle an exception, while 'throw' is used to declare an exception
7%
'throws' is used within a method, and 'throw' is used with the method signature
❤1
What is the purpose of garbage collection in Java, and how does it work?
ما هو الغرض من جمع القمامة في جافا، وكيف يعمل؟
ما هو الغرض من جمع القمامة في جافا، وكيف يعمل؟
Which of these data types is used to store a single character in Java?
Anonymous Quiz
11%
String
80%
Char
8%
Character
1%
Text
Consider the code:
What concept of OOP does this demonstrate?
ضع في اعتبارك الكود:
ما هو المفهوم الذي يوضحه هذا الكود في البرمجة الشيئية؟
class Animal {
void sound() {
System.out.println("Animal sound");
}}
class Dog extends Animal {
void sound() {
System.out.println("Bark");
}} What concept of OOP does this demonstrate?
ضع في اعتبارك الكود:
class Animal {
void sound() {
System.out.println("Animal sound");
}}
class Dog extends Animal {
void sound() {
System.out.println("Bark");
}} ما هو المفهوم الذي يوضحه هذا الكود في البرمجة الشيئية؟
How do you declare a variable in Java?
Anonymous Quiz
83%
dataType variableName;
3%
variableName dataType;
7%
dataType: variableName;
7%
declare variableName as dataType;
What is the use of the 'final' keyword when applied to a variable in Java?
ما هو استخدام كلمة 'final' عند تطبيقها على متغير في جافا؟
ما هو استخدام كلمة 'final' عند تطبيقها على متغير في جافا؟
In Java, what is the result of using '==' to compare two strings 'str1' and 'str2'?
Anonymous Quiz
39%
It compares the value of the strings
39%
It compares the reference of the strings
13%
It always returns true
8%
It always returns false
What will be the output of the following Java code snippet?
ماذا سيكون مخرجات قطعة الكود الجافا التالية؟
String[] animals = {"Dog", "Cat", "Horse"};
for(String animal : animals) {
System.out.println(animal);
} ماذا سيكون مخرجات قطعة الكود الجافا التالية؟
String[] animals = {"Dog", "Cat", "Horse"};
for(String animal : animals) {
System.out.println(animal);
}What is 'Stream API' in Java 8 used for?
Anonymous Quiz
42%
File I/O operations
10%
Creating threads
34%
Processing collections of objects in a functional manner
14%
Memory management
What is the use of the 'new' keyword in Java?
ما هو استخدام كلمة 'new' في جافا؟
ما هو استخدام كلمة 'new' في جافا؟
How do you access the third element in an array named 'myArray'?
Anonymous Quiz
65%
myArray[2];
20%
myArray[3];
13%
myArray.get(2);
2%
myArray(2);