logo

Crowdly

¿Hay errores en el siguiente código? abstract class DataException extends Exc...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

¿Hay errores en el siguiente código?

abstract class DataException extends Exception {}

class DataFormatException extends DataException {}

class DataWrangler {

    public boolean check(Data d) throws DataException {

        /*...*/

    }

   

    public void ingest() {

        try {

            Data md = new Data();

            this.check(md);

        }

        catch (DataException s) {

            s.printStackTrace();

        }

        System.out.println(md);

    }

}

More questions like this

Want instant access to all verified answers on moodle.uam.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!