جافا Java
6.46K subscribers
212 photos
18 videos
81 files
269 links
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Download Telegram
How do you declare a two-dimensional array in Java?

كيف تعلن عن مصفوفة ثنائية الأبعاد في جافا؟
This media is not supported in your browser
VIEW IN TELEGRAM
أخيرا البوت صار جاهز وفيه عده مواد اسئله اختبارات على شكل مسابقه جربوه واعطونا التقيم
@CodesBattlebot
👍6
What is the output of the following Java code?
 for(int i = 0; i < 5; i++) {
if(i % 2 == 0) {
System.out.println(i);
}
}


ما هو مخرجات الكود الجافا التالي؟
 for(int i = 0; i < 5; i++) {
if(i % 2 == 0) {
System.out.println(i);
}
}
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?

في جافا، ما هو 'تيار' وكيف يستخدم عادة؟