logo

Crowdly

Browser

Add to Chrome

Questions Bank (1572721 total)

Mis ilmub ekraanile?

public class MinuErind extends Exception {

   private int arv;

   public MinuErind(int arv) {

       this.arv = arv;

   }

   @Override

   public String toString() {

       return "arv";

   }

}
public class TestMinuErind {

   static void meetod(int arv) throws MinuErind{

       throw new MinuErind(arv);

   }

   public static void main(String[] args) {

       try {

           meetod(3);

       } catch (MinuErind e) {

           System.out.println(e);

       }

   }

}

0%
0%
0%
✅
View this question

Eine Arbeit von W = 2986 J wird in einer Zeit von t = 64 s verrichtet.

Welche Leistung P wird dabei geleistet?

P =   W (2 Stellen nach dem Komma)

View this question

Mis ilmub ekraanile?

try {

   System.out.print("Tere, maailm! ");

   String a = "12.03";

} finally {

   System.out.println("Epiloog " + a);

}

0%
0%
0%
0%
0%
View this question

Millised järgmistest on korrektsed programmid (kompileeruvad)?

Võib eeldada, et vajalikud asjad on imporditud ja klassi algus ja lõpp ning main-meetod on ka korralikult olemas.

0%
0%
0%
0%
0%
0%
View this question

Antud programm kompileerub.

public class Test {

   public static void main(String[] args) {

       try (Scanner sc = new Scanner(new File("andmed.txt"))) {

           System.out.println("...");

       }

   }

}

0%
100%
View this question

On antud programm

public class MeieErind extends ____________ {

}
public class TestMeieErind {

   public static void main(String[] args) {

       throw new MeieErind();

   }

}
Millised alltoodud variantidest sobivad lünka, et programm oleks korrektne (kompileeruks)?

0%
0%
0%
0%
View this question

Millised read väljastatakse ekraanile?

int[] a = {1, 0};

int b = 0;

try {

   try {

       System.out.println("Vahel");

   b = a[3];

   } catch (ArrayIndexOutOfBoundsException e) {

       System.out.println("Esimene püünis");

       b = 1/a[1];

   }

} catch (ArithmeticException e) {

   System.out.println("Teine püünis");

} finally {

   System.out.println("Epiloog");

}

System.out.println("Pärast");
0%
0%
0%
0%
0%
0%
0%
View this question

Які з наведених конструкцій доцільно виготовляти методом вакуумного формування?

0%
0%
0%
0%
0%
View this question

Що позначає позиція 1 на рисунку (схема процесу вакуумного формування)?

0%
0%
❌
0%
0%
0%
View this question

Welche Leistung hat ein

Bauarbeiter, der

in 110

Minuten

aus einer 1,1 m tiefen Baugrube 277 kg Kies schaufelt?

P = W (2 Stellen nach dem Komma)

View this question