Квиз по Java: Checked vs Unchecked Exceptions

This Java quiz tests the difference between checked exceptions like IOException and unchecked ones like NumberFormatException. You will predict output, spot code that does not compile and decide what a method may declare with throws.

Средний 10 вопроса ~6 минуты Проходной балл: 80% Java 17

Выберите режим

Вы играете как гость: войдите, чтобы сохранить XP и серию.

Пример вопроса

Вопрос 1 из 10

Which of these is a checked exception?

Показать ответ

B. IOException IOException extends Exception but not RuntimeException, so the compiler makes you catch or declare it. The other three extend RuntimeException, which makes them unchecked.

Что проверяет этот квиз

  • Checked exceptions vs RuntimeException and its subclasses
  • Declaring with throws and the "catch or declare" rule
  • Wrapping a checked exception with a cause
  • Catch order, multi-catch and exception subclasses
  • Checked exceptions inside lambdas and overriding methods

Частые вопросы

Нужен ли аккаунт?

Нет. Играть может любой. Войдите, чтобы сохранять XP, серию, значки и историю.

Можно пройти ещё раз?

Да. Лучший результат сохраняется, а вопросы и ответы каждый раз перемешиваются.