CodeGym/Kursy Java/Kolekcje w Java/Zadania | Poziom 8 | Lekcja 4

Zadania | Poziom 8 | Lekcja 4

Dostępny
10
Zadanie
Java Collections,  poziom 8lekcja 4
Niedostępne
Fix coding errors
The NameIsEmptyException and NameIsNullException exceptions must be checked. All types of exceptions must be handled. Don't change the implementations of the main() and getNumberOfCharacters() methods. Only the order of the catch blocks in the main() method should be changed.
10
Zadanie
Java Collections,  poziom 8lekcja 4
Niedostępne
Checked exceptions
Write the implementation of the veryComplexMethod() method. It must always throw a checked exception. Using the keyword throw to throw an exception is explicitly forbidden.
10
Zadanie
Java Collections,  poziom 8lekcja 4
Niedostępne
Runtime exceptions (unchecked exceptions)
Write the implementation of the methodThrowsClassCastException() method. It must always throw a ClassCastException. Write the implementation of the methodThrowsNullPointerException() method. It must always throw a NullPointerException.
Komentarze
  • Popularne
  • Najnowsze
  • Najstarsze
Musisz się zalogować, aby dodać komentarz
Ta strona nie ma jeszcze żadnych komentarzy