What is the correct way to compare two strings for equality in Java?
Anonymous Quiz
17%
string1 == string2
47%
string1.equals(string2)
18%
string1.compareTo(string2)
17%
string1.equal(string2)
❤2
This media is not supported in your browser
VIEW IN TELEGRAM
طريقة عمل مشروع javafx اذا ال jdk عندك اعلى من 8 بطريقة مباشرة في النتبينز
❤2
Which of the following is the correct way to create a multidimensional array in Java?
Anonymous Quiz
74%
int[][] arr = new int[10][10];
12%
int arr[][] = new int[10,10];
9%
int arr[10][10];
5%
int[][] arr = new int[10];
Which of these is not a loop structure in Java?
Anonymous Quiz
10%
for
19%
foreach
7%
do-while
64%
repeat
Write a Java program to print all the elements of a two-dimensional integer array named 'matrix'.
اكتب برنامج جافا لطباعة جميع عناصر مصفوفة ثنائية الأبعاد من الأعداد الصحيحة باسم 'matrix'.
اكتب برنامج جافا لطباعة جميع عناصر مصفوفة ثنائية الأبعاد من الأعداد الصحيحة باسم 'matrix'.
Which of the following is an unchecked exception in Java?
Anonymous Quiz
27%
IOException
15%
FileNotFoundException
32%
NullPointerException
25%
SQLException
مستغرب من اللي يستخدمون w3schools لتعلم الويب وعندهم هذا الموقع
https://developer.mozilla.org/en-US/docs/Learn
https://developer.mozilla.org/en-US/docs/Learn
MDN Web Docs
Learn web development | MDN
Welcome to MDN Learning Web Development (also known as Learn). This resource provides a structured set of tutorials teaching the essential skills and practices for being a successful front-end developer, along with challenges and further recommended resources.
Which access modifier makes a member of a class accessible only within the same package?
Anonymous Quiz
25%
private
25%
public
30%
protected
20%
None (default access)
What is the purpose of a constructor in a Java class?
ما هو الغرض من منشئ في فئة جافا؟
ما هو الغرض من منشئ في فئة جافا؟
في جافا لو المتغير private وماحطينا دوال داخل الكلاس للوصول لهذا المتغير هل نقدر نغير او نوصل لهذا المتغير بشكل مباشر من ال main method
جافا Java
في جافا لو المتغير private وماحطينا دوال داخل الكلاس للوصول لهذا المتغير هل نقدر نغير او نوصل لهذا المتغير بشكل مباشر من ال main method
اتوقع 80% بيجاوب غلط 🫢
Please open Telegram to view this post
VIEW IN TELEGRAM
How do you define a one-line comment in Java?
Anonymous Quiz
83%
// This is a comment
12%
/* This is a comment */
2%
<!-- This is a comment -->
3%
# This is a comment
In Java, what is a 'package' and how is it used?
في جافا، ما هو 'الحزمة' وكيف يتم استخدامها؟
في جافا، ما هو 'الحزمة' وكيف يتم استخدامها؟
What is the correct syntax to print a message in Java?
Anonymous Quiz
96%
System.out.println("Hello, World!");
1%
print("Hello, World!");
2%
Console.WriteLine("Hello, World!");
1%
echo("Hello, World!");
In Java, what is a 'package' and how is it used?
في جافا، ما هو 'الحزمة' وكيف يتم استخدامها؟
في جافا، ما هو 'الحزمة' وكيف يتم استخدامها؟
What is the output of the following Java code?
```java
System.out.println(10 > 9); ```
```java
System.out.println(10 > 9); ```
Anonymous Quiz
76%
true
13%
false
8%
1
3%
0
Consider the following Java code snippet. What will be the output?
فكر في الشفرة البرمجية جافا التالية. ماذا سيكون المخرج؟
class Base {
void display() {
System.out.println("Base display()");
}
}
class Derived extends Base {
void display() {
System.out.println("Derived display()");
}
}
public class Test {
public static void main(String[] args) {
Base obj = new Derived();
obj.display();
}
}
فكر في الشفرة البرمجية جافا التالية. ماذا سيكون المخرج؟
Which of the following is not a valid way to create an instance of a class named `MyClass` in Java?
Anonymous Quiz
45%
MyClass obj = new MyClass();
14%
new MyClass();
23%
MyClass obj = MyClass.new();
17%
MyClass obj = MyClass();
❤3