logo

Crowdly

Mis ilmub ekraanile? public class MinuErind extends Exception {    private ...

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

Mis ilmub ekraanile?

public class MinuErind extends Exception {

   private int arv;

   public MinuErind(int arv) {

       this.arv = arv;

   }

   @Override

   public String toString() {

       return "arv";

   }

}
public class TestMinuErind {

   static void meetod(int arv) throws MinuErind{

       throw new MinuErind(arv);

   }

   public static void main(String[] args) {

       try {

           meetod(3);

       } catch (MinuErind e) {

           System.out.println(e);

       }

   }

}

0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.ut.ee?

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