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 {

        if (!d.isWellFormed()) throw new DataFormatException();

        return true;

    }

   

    public void ingest(Data md) {

        try {

            q.check(md);

        }

        catch (DataFormatException s) { /*...*/ }

    }

}

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!