uz
Feedback
جافا Java

جافا Java

Kanalga Telegram’da o‘tish

ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم

Ko'proq ko'rsatish
6 163
Obunachilar
-324 soatlar
-147 kun
-6930 kun
Postlar arxiv
What is a 'Lambda expression' in Java, and give an example. ما هو 'تعبير لامبدا' في جافا، وأعط مثالاً.

What is the return type of a method that does not return any value?
Anonymous voting

What is the output of the following Java code?
 int[] arr = {1, 2, 3, 4, 5};
for(int i = 0; i < arr.length; i++) {
  System.out.print(arr[i] + " ");
} 
ما هو مخرجات الكود الجافا التالي؟
 int[] arr = {1, 2, 3, 4, 5};
for(int i = 0; i < arr.length; i++) {
  System.out.print(arr[i] + " ");
}

How do you handle an exception in Java?
Anonymous voting

True or False: In Java, a 'while' loop is an example of a conditional loop. صحيح أم خطأ: في جافا، حلقة 'while' هي مثال على حلقة شرطية.

Which of the following is not a valid way to create a thread in Java?
Anonymous voting

https://t.me/learn_java_s تأخرنا هذي المره ماوصلنا 7k خلونا نوصل بهذا الأسبوع 🔥

Explain the concept of 'serialization' in Java. شرح مفهوم 'التسلسل' في جافا.

How can you call a method named `calculateSum` that takes two integers as parameters and returns an integer?
Anonymous voting

How do you handle exceptions in Java? كيف تتعامل مع الاستثناءات في جافا؟

How can you ensure a class cannot be subclassed in Java?
Anonymous voting

What is the use of the 'new' keyword in Java? ما هو استخدام كلمة 'new' في جافا؟

What is the output of the following Java code snippet? ```java int a = 9, b = 4; if (a > 10) { b = b + 1; } else { b = b - 1; } System.out.println(b); ```
Anonymous voting

In Java, what is a 'stream' and how is it typically used? في جافا، ما هو 'تيار' وكيف يستخدم عادة؟

What will the following Java code snippet print? ```java int[] numbers = {1, 2, 3, 4, 5}; for(int i : numbers) { System.out.print(i + " "); } ```
Anonymous voting

Identify and fix the error in the following Java code snippet:
 public class Main {
  public static void Main(String[] args) {
    System.out.println("Hello, world!");
  }
} 
حدد وأصلح الخطأ في قطعة الكود الجافا التالية:
 public class Main {
  public static void Main(String[] args) {
    System.out.println("Hello, world!");
  }
}

How do you declare a method in Java that takes an integer as input and returns an integer?
Anonymous voting

What is the purpose of a constructor in a Java class? ما هو الغرض من منشئ في فئة جافا؟

What is 'Method Overloading' in Java?
Anonymous voting

How do you ensure a class in Java is not inherited by any other class? كيف تضمن ألا يتم وراثة فئة في جافا من قبل أي فئة أخرى؟