جافا Java
6.46K subscribers
212 photos
18 videos
81 files
269 links
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Download Telegram
What is the output of the following Java code snippet that uses array of objects?

class Student {
String name;
Student(String name) {
this.name = name;
}
}
public class Test {
public static void main(String[] args) {
Student[] students = {new Student("John"), new Student("Jane")};
for(Student student : students) {
System.out.println(student.name);
}
}
}



ما هو مخرج الشفرة البرمجية جافا التالية التي تستخدم مصفوفة من الكائنات؟
Fix the error in the following Java code snippet to correctly declare and initialize an array of integers.

int[] numbers = {1, 2, 3, 4, 5;



أصلح الخطأ في الشفرة البرمجية جافا التالية لتعريف وتهيئة مصفوفة من الأعداد الصحيحة بشكل صحيح.
كم يكون ال output
جافا Java pinned Deleted message
جافا Java pinned Deleted message
الكود صح او خطأ مع السبب
👍5
الى ماذا ترمز هذي الصيغه
public void methodABC(int x,double y)
public void methodABC(double x,int y)
Anonymous Quiz
45%
Overriding
55%
overload
النوع long يتكون من
Anonymous Quiz
72%
64 bit
18%
32 bit
4%
16 bit
6%
8 bit
النوع char
يتكون من
Anonymous Quiz
46%
16 bit
31%
8 bit
12%
4 bit
12%
2 bit
النوع int
يتكون من
Anonymous Quiz
29%
16 bit
28%
8 bit
39%
32 bit
4%
64 bit
int c[ ][ ];
هل يمثل مصفوفة ثنائية اذا كانت الإجابة خطأ اعطنا الصح في جروب المناقشة
Anonymous Quiz
79%
صح
21%
خطأ
👍3
&&
يرمز ل
Anonymous Quiz
92%
And
4%
Or
1%
Not
3%
Nand