جافا Java
6.47K subscribers
212 photos
18 videos
81 files
269 links
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Download Telegram
Write a Java code to implement a simple parking lot management system.

اكتب كود جافا لتنفيذ نظام إدارة موقف سيارات بسيط.

#SimpleApplications
What is the purpose of the `super()` call in a constructor?

ما هو الغرض من استدعاء `super()` في المُنشئ؟

#JavaConstructors #Inheritance
What is polymorphism in Java?

ما هو تعدد الأشكال (polymorphism) في جافا؟

#JavaPolymorphism #OOP
Create a Java switch statement to print the name of a day based on a number (1-7).

أنشئ عبارة switch في جافا لطباعة اسم اليوم بناءً على رقم (1-7).

#SwitchStatement
What is the output of the following code?
String str = "Hello";
str.concat(" World");
System.out.println(str);

ما هو ناتج تنفيذ الكود التالي؟
String str = "Hello";
str.concat(" World");
System.out.println(str);

#JavaStrings #Immutability
👍1
What is the difference between `==` and `.equals()` when comparing objects in Java?

ما هو الفرق بين `==` و `.equals()` عند مقارنة الكائنات في جافا؟

#JavaComparison #ObjectEquality
Write a Java code to implement a simple music playlist manager.

اكتب كود جافا لتنفيذ مدير قائمة تشغيل موسيقية بسيط.

#SimpleApplications
What is the purpose of the `this()` call in a constructor?

ما هو الغرض من استدعاء `this()` في المُنشئ؟

#JavaConstructors #OOP
Which of the following is true about Java's functional interfaces?

أي مما يلي صحيح بخصوص الواجهات الوظيفية (functional interfaces) في جافا؟

#JavaFunctionalProgramming #Interfaces
Create a Java program to simulate a simple dice rolling game.

أنشئ برنامجاً في جافا لمحاكاة لعبة رمي النرد البسيطة.

#RandomNumbers
What will be the output of the following code?
int x = 5;
System.out.println(x++ + ++x);

ما هو ناتج تنفيذ الكود التالي؟
int x = 5;
System.out.println(x++ + ++x);

#JavaOperators #IncrementOperators