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); } }}
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)
Mis ilmub ekraanile?
try { System.out.print("Tere, maailm! "); String a = "12.03";} finally { System.out.println("Epiloog " + a);}
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.
Antud programm kompileerub.
public class Test { public static void main(String[] args) { try (Scanner sc = new Scanner(new File("andmed.txt"))) { System.out.println("..."); } }}
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)?
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");
Які з наведених конструкцій доцільно виготовляти методом вакуумного формування?
Що позначає позиція 1 на рисунку (схема процесу вакуумного формування)?
Welche Leistung hat ein Bauarbeiter, der in 110 Minuten
P = W (2 Stellen nach dem Komma)