Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
toma!
//Title of this code //'main' method must be in a class 'Rextester'. import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { try{ Integer a = null; a = a + 5; }catch(Exception e){ System.out.println("ex1"); }catch(NullPointerException e2){ System.out.println("ex2"); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Find a dot in a string
Java For Each Loop
Merge Sort in Java
Java Procedural Progamming
Alumnos Java con Input
ArrayOperation
Number to Words (Accenture)
vechile
Reverse Prime
test1
Please log in to post a comment.