fork download
  1. class Uni {
  2. static class Ball extends Throwable {
  3. Ball() {
  4. super();
  5. System.out.println("lol");
  6. }
  7. }
  8. public static void main (String[] args) {
  9. try {
  10. new Uni().ballpls(); // !!
  11. } catch (final Ball ball) {}
  12. System.out.println("yellow");
  13. }
  14. void ballpls() throws Ball {
  15. throw new Ball();
  16. }
  17. }
Success #stdin #stdout 0.08s 380224KB
stdin
Standard input is empty
stdout
lol
yellow