جافا Java
Открыть в Telegram
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Больше6 163
Подписчики
-324 часа
-147 дней
-6930 дней
Архив постов
6 163
What will the following code snippet print?
```java
if (false) { System.out.println("True"); } else { System.out.println("False"); } ```
6 163
What will be the output of the following Java code snippet that uses a while loop?
int x = 0;
while(x < 5) {
System.out.print(x + " ");
x++;
}
ماذا سيكون المخرج للشفرة البرمجية جافا التالية التي تستخدم حلقة while؟6 163
Fix the error in the following Java code snippet to correctly iterate over an array using a for loop.
int[] arr = {1, 2, 3, 4, 5};
for(int i = 0; i <= arr.length; i++) {
System.out.println(arr[i]);
}
أصلح الخطأ في الشفرة البرمجية جافا التالية لتكرار على مصفوفة باستخدام حلقة for بشكل صحيح.6 163
What is the correct way to declare a variable to store an integer value in Java?
6 163
What will be the output of the following Java code snippet that demonstrates the use of a static variable?
class Counter {
static int count = 0;
Counter() {
count++;
System.out.println(count);
}
}
public class TestStaticVariable {
public static void main(String[] args) {
new Counter();
new Counter();
}
}
ماذا سيكون المخرج للشفرة البرمجية جافا التالية التي توضح استخدام متغير ثابت؟6 163
What concept in Java is used to hide the internal implementation details of a class and only show the functionality to the user?
6 163
What is the output of the following Java code snippet demonstrating the concept of method overriding?
class Vehicle {
void run() {
System.out.println("Vehicle is running");
}
}
class Bike extends Vehicle {
void run() {
System.out.println("Bike is running safely");
}
}
public class Test {
public static void main(String[] args) {
Bike obj = new Bike();
obj.run();
}
}
ما هو مخرج الشفرة البرمجية جافا التالية التي توضح مفهوم إعادة تعريف الطريقة؟6 163
Which of the following is a valid declaration of a String variable in Java?
6 163
Identify and fix the error in the following Java code snippet that defines an enum for days of the week.
enum Day {
SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY;
}
حدد وأصلح الخطأ في الشفرة البرمجية جافا التالية التي تعرف enum لأيام الأسبوع.6 163
What keyword is used to access a method or variable from the superclass in a subclass?
6 163
https://t.me/java_coffee1
رابط القروب تتناقش فيه مواضيع تقنيه غير الجافا علشان مانطلع من هذا القروب عن الجافا
6 163
Correct the error in the following Java code snippet that attempts to override a method in a subclass.
class SuperClass {
protected void display() {
System.out.println("SuperClass display");
}
}
class SubClass extends SuperClass {
private void display() {
System.out.println("SubClass display");
}
}
صحح الخطأ في الشفرة البرمجية جافا التالية التي تحاول إعادة تعريف طريقة في فئة فرعية.6 163
What does the `final` keyword signify when applied to a variable in Java?
6 163
كثير من اللي هنا مايعرفون اني انزل اسئله يوميه مثل هذي على تويتر بس مختلفه على الأسئلة اللي هنا 🫢
6 163
What will be the output of the following Java code snippet that demonstrates static method overriding?
class Parent {
static void show() {
System.out.println("Parent's show()");
}
}
class Child extends Parent {
static void show() {
System.out.println("Child's show()");
}
}
public class Test {
public static void main(String[] args) {
Parent obj = new Child();
obj.show();
}
}
ماذا سيكون المخرج للشفرة البرمجية جافا التالية التي توضح إعادة تعريف الطريقة الثابتة؟6 163
Which of the following is a valid declaration of a method that returns an array of integers in Java?
