جافا Java
6.46K subscribers
212 photos
18 videos
81 files
269 links
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Download Telegram
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
True or False: In Java, a 'while' loop is an example of a conditional loop.

صحيح أم خطأ: في جافا، حلقة 'while' هي مثال على حلقة شرطية.
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] + " ");
}
1
What is the return type of a method that does not return any value?
Anonymous Quiz
21%
null
62%
void
8%
0
9%
None of the above
1
What is a 'Lambda expression' in Java, and give an example.

ما هو 'تعبير لامبدا' في جافا، وأعط مثالاً.
What is an 'interface' in Java?

ما هو 'الواجهة' في جافا؟
Which of the following is a legal identifier in Java?
Anonymous Quiz
52%
_myVariable
16%
2myVariable
18%
my-variable
14%
my variable