es
Feedback

¡No caigas en manos de tramposos! Telemetrio encuentra y marca estos canales 👉 Si quieres ver la etiqueta, suscríbete

جافا Java

جافا Java

Ir al canal en Telegram

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

Mostrar más
6 096
Suscriptores
-224 horas
-87 días
-3630 días
Archivo de publicaciones
❓ اختيار overload مع null Overload resolution with null
void f(Object o){ System.out.print("O"); }
void f(String s){ System.out.print("S"); }
f(null);

Choose your answer:
Anonymous voting

❓ تمرير مصفوفة لميثود Passing array to method
static void inc(int[] a){
  for (int i = 0; i < a.length; i++) a[i]++;
}
int[] a = {0,1,2};
inc(a);
System.out.println(a[2]);

📢 Advertising in this channel You can place an ad via Telega․io. It takes just a few minutes. Formats and current rates: Vie
📢 Advertising in this channel You can place an ad via Telega․io. It takes just a few minutes. Formats and current rates: View details

Choose your answer:
Anonymous voting

❓ switch مع break switch with break
int n = 1;
switch (n) {
  case 1: System.out.print("X"); break;
  default: System.out.print("Y");
}

Choose your answer:
Anonymous voting

❓ اقتران else بالأقرب else pairs with nearest if
int x = 0, y = 10;
if (y > 0)
  if (x == 1) System.out.print("A");
  else System.out.print("B");

Choose your answer:
Anonymous voting

❓ do-while تُنفَّذ مرة على الأقل do-while runs at least once
int i = 5;
do { i++; } while (i < 5);
System.out.println(i);

Choose your answer:
Anonymous voting

❓ ما ناتج الجمع مع break؟ What is the output with break?
int sum = 0;
for (int i = 1; i <= 5; i++) {
  if (i == 4) break;
  sum += i;
}
System.out.println(sum);

Choose your answer:
Anonymous voting

❓ التركيب مقابل الوراثة Composition vs inheritance

عيد مبارك و تقبل الله منا ومنكم صالح الاعمال

Choose your answer:
Anonymous voting

❓ استخدام this للإشارة لحقل مُغَطّى Using this to refer to a shadowed field
class T {
  int n = 10;
  void set(int n){ n = n; }
  int get(){ return n; }
}
T t = new T();
t.set(5);
System.out.println(t.get());

Choose your answer:
Anonymous voting

❓ إخفاء الحقول (Field Hiding) Field hiding resolution
class A { int v = 1; }
class B extends A { int v = 2; }
B b = new B();
System.out.println(((A)b).v);

Choose your answer:
Anonymous voting