✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Dada la siguiente clase:
public class DataException extends Exception {
public String toString() { return "Found data fault"; }
}
y asumiendo que el siguiente método está definido y accesible:
public void cleanData(String s) throws DataException {
if ((s == null ) || (
throw new DataException();
}
¿cuál será la salida del siguiente código?
try {
for (String data : Arrays.asList("data", "f@5", "last", null)) {
cleanData( data );
System.out.println(data);
}
}
System.out.println(ex);
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!