logo

Crowdly

Browser

Add to Chrome

Course 19

Looking for Course 19 test answers and solutions? Browse our comprehensive collection of verified answers for Course 19 at bt.nixs.com.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

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

 

public class X {

public static void main(String [] args) {

try {

badMethod();

System.out.print("A");

} catch (Exception ex) {

System.out.print("B");

} finally {

System.out.print("C");

}

System.out.print("D");

}

public static void badMethod() {

throw new Error();

}

}

0%
0%
0%
100%
View this question

Чи можна використовувати більше одного блоку try?

0%
100%
View this question

Яке з цих тверджень є вірним?

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

Відмінність перевірених від неперевірених винятків полягає в тому, що перевірені можна перевірити та обробити, а неперевірені є помилками системи або програміста і не можуть бути оброблені

0%
100%
View this question

Перевірені (checked) винятки включають всі підкласи класу Exception.

0%
100%
View this question

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

public int method() {

try {

return 1;

} finally {

return 2;

}

}

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

Усі підкласи класу Error та RuntimeException є неперевіреними

0%
100%
View this question

Блок finally виконається завжди незалежно від того, чи вилетить виняток чи ні.

100%
0%
View this question

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

public class RTExcept {

public static void throwit () {

System.out.print("throwit ");

throw new RuntimeException();

}

public static void main(String [] args) {

try {

System.out.print("hello ");

throwit();

} catch (Exception re ) {

System.out.print("caught ");

} finally {

System.out.print("finally ");

}

System.out.println("after ");

}

}

0%
0%
0%
100%
View this question

Суперкласом класу Error є ...

0%
0%
100%
0%
View this question

Want instant access to all verified answers on bt.nixs.com?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome