Intermedio
18 novembre 2026Trova il bug: Spring Boot
Uno snippet di codice. Trova il bug, o dimostra che non ce n'è.
java
1public Properties loadConfig(Path path) {
2 Properties props = new Properties();
3 try (InputStream is = Files.newInputStream(path)) {
4 props.load(is);
5 } catch (IOException e) {
6 }
7 return props;
8}Clicca sulle righe che causano il problema.
Il tuo verdetto
Un tentativo al giorno. La risposta appare subito dopo.
Mantieni la tua serie
Crea un account per conservare la tua serie e seguire i tuoi progressi.