جافا Java
6.46K subscribers
212 photos
18 videos
81 files
269 links
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Download Telegram
Create a Java method to find the nth Ugly number.

أنشئ دالة في جافا لإيجاد العدد القبيح رقم n.

#NumberTheory
What is the purpose of the `break` statement in Java?

ما هو الغرض من عبارة `break` في جافا؟

#JavaControlFlow #LoopControl
Create a Java method to check if a number is a perfect number.

أنشئ دالة في جافا للتحقق مما إذا كان الرقم عدداً تاماً.

#NumberTheory
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