جافا Java
6.46K subscribers
212 photos
18 videos
81 files
269 links
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Download Telegram
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] + "");
}
What is the correct way to declare a method in Java?
Anonymous Quiz
28%
function methodName()
1%
let methodName()
15%
methodName function()
56%
void methodName()
How do you initialize an array of 10 integers to zero in Java?

كيف تقوم بتهيئة مصفوفة من 10 أعداد صحيحة إلى صفر في جافا؟
Which collection class in Java is synchronized?
Anonymous Quiz
42%
ArrayList
24%
LinkedList
21%
Vector
14%
HashSet
1👍1🔥1
Write a Java method 'multiply' that takes two integers as arguments and returns their product.

اكتب طريقة جافا 'multiply' التي تأخذ عددين صحيحين كمعاملات وترجع حاصل ضربهما.
In Java, which keyword is used to inherit features from a class?
Anonymous Quiz
70%
extends
5%
inherits
16%
super
8%
this
How do you ensure a class in Java is not inherited by any other class?

كيف تضمن ألا يتم وراثة فئة في جافا من قبل أي فئة أخرى؟
How do you declare a method in Java that takes an integer as input and returns an integer?
Anonymous Quiz
67%
int functionName(int input);
10%
functionName(int input): int;
15%
int input functionName();
8%
function int functionName(int input);
Identify and fix the error in the following Java code snippet:
 public class Main {
public static void Main(String[] args) {
System.out.println("Hello, world!");
}
}


حدد وأصلح الخطأ في قطعة الكود الجافا التالية:
 public class Main {
public static void Main(String[] args) {
System.out.println("Hello, world!");
}
}
👍1
What will the following Java code snippet print?
```java
int[] numbers = {1, 2, 3, 4, 5}; for(int i : numbers) { System.out.print(i + " "); } ```
Anonymous Quiz
56%
1 2 3 4 5
13%
1, 2, 3, 4, 5
8%
12345
23%
An error because the syntax is incorrect
🙏1
In Java, what is a 'stream' and how is it typically used?

في جافا، ما هو 'تيار' وكيف يستخدم عادة؟
What is the output of the following Java code snippet?
```java
int a = 9, b = 4; if (a > 10) { b = b + 1; } else { b = b - 1; } System.out.println(b); ```
Anonymous Quiz
75%
3
14%
4
8%
5
3%
0
What is the use of the 'new' keyword in Java?

ما هو استخدام كلمة 'new' في جافا؟
How do you handle exceptions in Java?

كيف تتعامل مع الاستثناءات في جافا؟
How can you call a method named `calculateSum` that takes two integers as parameters and returns an integer?
Anonymous Quiz
29%
calculateSum(int a, int b);
28%
int result = calculateSum(a, b);
28%
int result = calculateSum(int a, int b);
16%
calculateSum(a, b);
Explain the concept of 'serialization' in Java.

شرح مفهوم 'التسلسل' في جافا.
👍1