“exception” Réponses codées

exception

static void f2() {
    try {
       
    } catch(IndexOutOfRangeException) {
        Console.Write("B");
    }
    
}

answer:  Console.Write("B");
Agreeable Antelope

Exceptions

>>> 10 * (1/0)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ZeroDivisionError: division by zero
>>> 4 + spam*3
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
NameError: name 'spam' is not defined
>>> '2' + 2
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: Can't convert 'int' object to str implicitly
Yuvi On YT

exception

Caused by: java.lang.NullPointerException: Location is required.
Motionless Mosquito

Réponses similaires à “exception”

Questions similaires à “exception”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code