جافا Java
6.46K subscribers
212 photos
18 videos
81 files
269 links
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Download Telegram
How can you call a method named `calculateSum` that takes two integers as parameters and returns an integer?

كيف يمكنك استدعاء طريقة تسمى `calculateSum` تأخذ عددين كمعلمات وتعيد عددًا صحيحًا؟
Which keyword is used in Java to create a new instance of a class?

أي كلمة مفتاحية تستخدم في جافا لإنشاء نسخة جديدة من فئة؟
Write the code to define a class 'Person' with properties like name and age in Java.

اكتب الكود لتعريف فئة 'Person' مع خصائص مثل الاسم والعمر في جافا.
👍2
Which of these array declarations is not valid in Java?

أي من تصريحات المصفوفة التالية غير صالحة في جافا؟
What does the `break` statement do in a loop in Java?

ماذا تفعل عبارة `break` في حلقة في جافا؟
👍1
Which of these is a valid declaration of a `main` method in Java?

أي من هذه هو تعريف صالح لطريقة `main` في جافا؟
Write the code to implement a recursive algorithm to determine whether a given binary tree is a binary search tree.

اكتب الكود لتنفيذ خوارزمية متكررة لتحديد ما إذا كانت شجرة ثنائية معينة هي شجرة بحث ثنائية.
1
This media is not supported in your browser
VIEW IN TELEGRAM
What is abstraction in Java?

ما هو التجريد في جافا؟
Which of these is the correct way to define a constructor that takes a string and an integer as arguments in a class named `Person` in Java?

أي من هذه هو الطريقة الصحيحة لتعريف بناء يأخذ سلسلة وعدد صحيح كمعلمات في فئة تسمى `Person` في جافا؟
Write the code to implement a recursive algorithm to traverse a binary tree and print its elements in a specific order (e.g., pre-order, in-order, or post-order).

اكتب الكود لتنفيذ خوارزمية متكررة لجولة شجرة ثنائية وطباعة عناصرها بترتيب محدد (مثل الترتيب الأمامي، أو الترتيب الداخلي، أو الترتيب البعدي).
Which of the following is not a loop construct in Java?

أي من الأتي ليس بناء حلقة في جافا؟
What is the default value of an int variable declared as an instance variable in a class in Java?

ما هي القيمة الافتراضية لمتغير صحيح تم تعريفه كمتغير فردي في فئة في جافا؟