- Esecutori
-
Impara
Impara Python Esempi eseguibili, NumPy, pandas e altro Impara l'IA / Machine LearningReti neurali, ML e LLM da zero Impara C e C++ Puntatori, memoria, STL e C++ moderno Impara C#Fondamenti, OOP, LINQ, async ed esercizi .NET Impara MatplotlibGrafici a linee, barre, dispersione e torta con visualizzatori Impara RustOwnership, trait, gestione degli errori e thread Impara GoSlice, interfacce, goroutine e canali Algoritmi Python Ricerca, ordinamento, ricorsione e visualizzazioni O(n) Algoritmi C e C++ Confronta le implementazioni in C e C++ Programmazione per bambini Impara a programmare giocando!
- QuizNuovo
- SfideNuovo
- Per docentiNuovo
- Aggiornamenti
- Offrimi un caffè
Quiz di 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.
Domanda di esempio
Domanda 1 di 10Which of these is a checked exception?
Mostra la risposta
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.
Cosa copre questo quiz
- Checked exceptions vs
RuntimeExceptionand its subclasses - Declaring with
throwsand 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
Domande frequenti
Serve un account?
No. Chiunque può giocare. Accedi per salvare XP, serie, badge e cronologia.
Posso rifarlo?
Sì. Il tuo miglior punteggio resta salvato, e domande e risposte vengono mescolate ogni volta.