جافا Java
Відкрити в Telegram
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Показати більше6 084
Підписники
-124 години
-167 днів
-4830 днів
Архів дописів
6 083
In Java, which of these keywords is used to inherit methods and properties from a superclass?
6 083
Write a Java method that takes an array of integers and returns the sum of its elements.
اكتب طريقة جافا تأخذ مصفوفة من الأعداد الصحيحة وتعيد مجموع عناصرها.
6 083
What is the output of the following Java code snippet?
String str = "Java";
System.out.println(str.concat("Quiz"));
6 083
Explain the difference between static and non-static methods in Java.
شرح الفرق بين الطرق الثابتة وغير الثابتة في جافا.
6 083
What is a 'Lambda expression' in Java, and give an example.
ما هو 'تعبير لامبدا' في جافا، وأعط مثالاً.
6 083
What will be the output of the following Java code snippet?
String[] animals = {"Dog", "Cat", "Horse"};
for(String animal : animals) {
System.out.println(animal);
}
ماذا سيكون مخرجات قطعة الكود الجافا التالية؟
String[] animals = {"Dog", "Cat", "Horse"};
for(String animal : animals) {
System.out.println(animal);
}6 083
In Java, what is the result of using '==' to compare two strings 'str1' and 'str2'?
6 083
What is the use of the 'final' keyword when applied to a variable in Java?
ما هو استخدام كلمة 'final' عند تطبيقها على متغير في جافا؟
6 083
Consider the code:
class Animal {
void sound() {
System.out.println("Animal sound");
}}
class Dog extends Animal {
void sound() {
System.out.println("Bark");
}}
What concept of OOP does this demonstrate?
ضع في اعتبارك الكود:
class Animal {
void sound() {
System.out.println("Animal sound");
}}
class Dog extends Animal {
void sound() {
System.out.println("Bark");
}}
ما هو المفهوم الذي يوضحه هذا الكود في البرمجة الشيئية؟