جافا Java
Открыть в Telegram
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Больше6 163
Подписчики
-324 часа
-147 дней
-6930 дней
Архив постов
6 163
What is a 'Lambda expression' in Java, and give an example.
ما هو 'تعبير لامبدا' في جافا، وأعط مثالاً.
6 163
What is the output of the following Java code?
int[] arr = {1, 2, 3, 4, 5};
for(int i = 0; i < arr.length; i++) {
System.out.print(arr[i] + " ");
}
ما هو مخرجات الكود الجافا التالي؟
int[] arr = {1, 2, 3, 4, 5};
for(int i = 0; i < arr.length; i++) {
System.out.print(arr[i] + " ");
}6 163
True or False: In Java, a 'while' loop is an example of a conditional loop.
صحيح أم خطأ: في جافا، حلقة 'while' هي مثال على حلقة شرطية.
6 163
How can you call a method named `calculateSum` that takes two integers as parameters and returns an integer?
6 163
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); ```
6 163
In Java, what is a 'stream' and how is it typically used?
في جافا، ما هو 'تيار' وكيف يستخدم عادة؟
6 163
What will the following Java code snippet print?
```java
int[] numbers = {1, 2, 3, 4, 5}; for(int i : numbers) { System.out.print(i + " "); } ```
6 163
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!");
}
}6 163
How do you declare a method in Java that takes an integer as input and returns an integer?
6 163
What is the purpose of a constructor in a Java class?
ما هو الغرض من منشئ في فئة جافا؟
6 163
How do you ensure a class in Java is not inherited by any other class?
كيف تضمن ألا يتم وراثة فئة في جافا من قبل أي فئة أخرى؟
