3. Quale sarà l'output del seguente codice:
import java.io.IOException;
class Derived2 {
public void getDetails() throws IOException // line 6
{
System.out.println("Derived class");
}
}
public class Test extends Derived2 {
public void getDetails() throws Exception //line 13
{
System.out.println("Test class");
}
public static void main(String[] args) throws IOException //line 18
{
Derived2 obj = new Test();
obj.getDetails();
}
}
Good
Quel ‘printf’ mi ha fottuto, carino il test.
forte bravo!
uauue bellissimo qst sito come ai fatto ? stupendo come quello di apple
ciao. è un template di wordpress.
Mi spiace ma il punto 7 é errato, genera un errore di compilazione
purtroppo le domande sono random e quindi non riesco a verificare se il punto 7 è errato. In ogni caso, grazie per la segnalazione