جافا Java
6.46K subscribers
212 photos
18 videos
81 files
269 links
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Download Telegram
What is the difference between `==` and `.equals()` when comparing strings in Java?

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

#JavaStrings #ObjectComparison
What is the purpose of the `static` block in Java?

ما هو الغرض من الكتلة `static` في جافا؟

#JavaStaticKeyword #ClassInitialization
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