In Java, what is a 'package' and how is it used?
في جافا، ما هو 'الحزمة' وكيف يتم استخدامها؟
في جافا، ما هو 'الحزمة' وكيف يتم استخدامها؟
Which of the following is a correct way to instantiate an object in Java?
Anonymous Quiz
12%
ClassName objectName = ClassName();
79%
ClassName objectName = new ClassName();
4%
new ClassName objectName;
5%
ClassName objectName = create ClassName();
How do you create an immutable class in Java?
كيف تقوم بإنشاء فئة غير قابلة للتغيير في جافا؟
كيف تقوم بإنشاء فئة غير قابلة للتغيير في جافا؟
In Java, which of the following is the correct way to declare an array of integers?
Anonymous Quiz
20%
int[] nums;
12%
int nums[];
21%
int nums = new int[];
47%
A and B are correct
❤1
In Java, which method is used to find the length of an array?
في جافا، أي طريقة تستخدم لإيجاد طول المصفوفة؟
في جافا، أي طريقة تستخدم لإيجاد طول المصفوفة؟
In Java which of these is a correct implementation of the Singleton pattern?
Anonymous Quiz
54%
Using a public static method to return the same instance of the class
19%
Instantiating the class using a constructor
12%
Declaring all methods and variables as static
15%
Using a final class
Describe the concept of 'method overloading' in Java.
وصف مفهوم 'تحميل الطريقة' في جافا.
وصف مفهوم 'تحميل الطريقة' في جافا.
What is the advantage of using a 'PreparedStatement' in JDBC?
Anonymous Quiz
14%
Improved performance
26%
Protection against SQL injection attacks
12%
Ability to execute multiple queries
49%
Both A and B
Write a Java method that takes an array of integers and returns the sum of its elements.
اكتب طريقة جافا تأخذ مصفوفة من الأعداد الصحيحة وتعيد مجموع عناصرها.
اكتب طريقة جافا تأخذ مصفوفة من الأعداد الصحيحة وتعيد مجموع عناصرها.
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?
ما هو الغرض من جمع القمامة في جافا، وكيف يعمل؟
ما هو الغرض من جمع القمامة في جافا، وكيف يعمل؟