جافا Java
6.47K subscribers
212 photos
18 videos
81 files
269 links
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Download Telegram
What is the output of the following code?
int[] numbers = {1, 2, 3, 4, 5};
System.out.println(numbers[5]);

ما هو ناتج تنفيذ الكود التالي؟
int[] numbers = {1, 2, 3, 4, 5};
System.out.println(numbers[5]);

#JavaArrays #ExceptionHandling
👍2
Which collection class should be used if you need to maintain the insertion order of elements?

أي فئة من فئات المجموعات (collections) يجب استخدامها إذا كنت بحاجة للحفاظ على ترتيب إدخال العناصر؟

#JavaCollections #DataStructures
Write a Java code to implement a simple calculator using switch case.

اكتب كود جافا لتنفيذ آلة حاسبة بسيطة باستخدام switch case.

#ControlFlow
What is the difference between `==` and `.equals()` when comparing objects in Java?

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

#JavaComparison #ObjectEquality
What is the purpose of the `transient` keyword in Java?

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

#JavaSerialization #OOP
1👍1
Write a Java code to implement a simple address book using HashMap.

اكتب كود جافا لتنفيذ دفتر عناوين بسيط باستخدام HashMap.

#Collections
What is the difference between `throw` and `throws` in Java?

ما هو الفرق بين `throw` و `throws` في جافا؟

#JavaExceptionHandling #Syntax
What is the purpose of the `continue` statement in Java?

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

#JavaControlFlow #LoopControl
Write a Java code to implement a simple ATM machine simulation.

اكتب كود جافا لتنفيذ محاكاة بسيطة لماكينة صراف آلي.

#SimpleApplications
What is the purpose of the `implements` keyword in Java?

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

#JavaInterfaces #OOP
What is the difference between `break` and `continue` statements in Java?

ما هو الفرق بين عبارتي `break` و `continue` في جافا؟

#JavaControlFlow #Loops
Create a simple Java class with a constructor and one method.

أنشئ صنفاً بسيطاً في جافا يحتوي على مُنشئ ودالة واحدة.

#ClassCreation
What is the difference between `throw` and `throws` in Java?

ما هو الفرق بين `throw` و `throws` في جافا؟

#JavaExceptionHandling #Syntax