الى ماذا ترمز هذي الصيغه
public void methodABC(int x,double y)
public void methodABC(double x,int y)
public void methodABC(int x,double y)
public void methodABC(double x,int y)
Anonymous Quiz
45%
Overriding
55%
overload
ماهي وظيفة هذه الدالة
replaceFirst(String regex, String replacement)
replaceFirst(String regex, String replacement)
Anonymous Quiz
46%
تستخدم لتبديل نص محدد بداخل الـ String الذي قام باستدعائها
19%
تستخدم للبحث في الـ String الذي قام باستدعائها عن Substring ما لتبديله بنص جديد
35%
تبحث في الـ String الذي قام باستدعائها عن القيمة الأولى التي نمررها لها و تبدلها بالقيمة الثانية
int c[ ][ ];
هل يمثل مصفوفة ثنائية اذا كانت الإجابة خطأ اعطنا الصح في جروب المناقشة
هل يمثل مصفوفة ثنائية اذا كانت الإجابة خطأ اعطنا الصح في جروب المناقشة
Anonymous Quiz
79%
صح
21%
خطأ
👍3
Buy ads
https://telega.io/c/learn_java_e
https://telega.io/c/learn_java_e
Telega
Advertising in the Telegram channel «Learn java تعلم جافا» 09f6e - Telega.io
Advertising in the telegram channel Learn java تعلم جافا with a guarantee of placement! Telegram channel «@learn_java_e». Category: Computer science. Subscribers: 7081. Cost of advertising publication: $28.80.
👍4❤2🤩1
Which of the following is true about the while loop in Java?
Anonymous Quiz
48%
The while loop is used to iterate a part of the program several times.
21%
The while loop is executed at least once.
20%
The condition of the while loop is checked after the execution of the loop's body.
10%
None of the above
👍1
How do you write an if-else statement to check if a variable `age` is greater than 18?
Anonymous Quiz
72%
if (age > 18) {} else {}
3%
if age > 18 {} else {}
18%
if (age > 18); else;
6%
if {age > 18} else {}
❤2👍1
What will be the output of the following Java code snippet that demonstrates the use of the 'instanceof' keyword?
ماذا سيكون المخرج للشفرة البرمجية جافا التالية التي توضح استخدام كلمة 'instanceof'؟
class Parent {}
class Child extends Parent {}
public class Test {
public static void main(String[] args) {
Parent obj = new Child();
System.out.println(obj instanceof Child);
}
}
ماذا سيكون المخرج للشفرة البرمجية جافا التالية التي توضح استخدام كلمة 'instanceof'؟
What is the purpose of the `super` keyword in Java?
Anonymous Quiz
31%
To call a method of the superclass
13%
To access a field of the superclass
17%
To call the constructor of the superclass
40%
All of the above
👍2❤1
What is the output of the following Java code snippet?
ما هو مخرج الشفرة البرمجية جافا التالية؟
String name = "Java";
System.out.println(name instanceof String);
ما هو مخرج الشفرة البرمجية جافا التالية؟
Which of the following is true about the final keyword in Java?
Anonymous Quiz
10%
A final class cannot be subclassed.
9%
A final method cannot be overridden by subclasses.
26%
A final variable can only be initialized once.
55%
All of the above are true
Fix the error in the following Java code snippet to correctly calculate the factorial of a number using recursion.
أصلح الخطأ في الشفرة البرمجية جافا التالية لحساب عامل رقم باستخدام العودية بشكل صحيح.
public int factorial(int n) {
if (n == 1)
return 1;
else
return n * factorial(n - 1);
}
أصلح الخطأ في الشفرة البرمجية جافا التالية لحساب عامل رقم باستخدام العودية بشكل صحيح.
What is the base class of all classes in Java?
Anonymous Quiz
54%
Main
32%
Object
12%
Class
2%
System
What is the output of the following Java code snippet demonstrating the use of a for-each loop?
ما هو مخرج الشفرة البرمجية جافا التالية التي توضح استخدام حلقة for-each؟
int[] numbers = {1, 2, 3, 4, 5};
for(int num : numbers) {
System.out.print(num + " ");
}
ما هو مخرج الشفرة البرمجية جافا التالية التي توضح استخدام حلقة for-each؟
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?
Anonymous Quiz
60%
Person(String name, int age) {}
21%
void Person(String name, int age) {}
11%
new Person(String name, int age) {}
7%
Person(String name; int age) {}
👍2
What will be the output of the following Java code snippet demonstrating the use of abstract classes?
ماذا سيكون المخرج للشفرة البرمجية جافا التالية التي توضح استخدام الصفوف المجردة؟
abstract class Shape {
abstract void draw();
}
class Rectangle extends Shape {
void draw() {
System.out.println("Drawing Rectangle");
}
}
public class Test {
public static void main(String[] args) {
Shape shape = new Rectangle();
shape.draw();
}
}
ماذا سيكون المخرج للشفرة البرمجية جافا التالية التي توضح استخدام الصفوف المجردة؟