Pergunta de entrevista da empresa LBi Software

Difference between checked and unchecked expection.

Resposta da entrevista

Sigiloso

12 de abr. de 2019

Checked exceptions are checked at compile time (e.g ClassException when a class is not found when performing a cast), they require a try-catch block. Unchecked exceptions cannot be checked during run-time (e.g location of a file on hard disk, a URL that may or not exist) and they don't necessarily require a try-catch block.