Browse - Programming Tips - How can I make a Java program (or app or servlet) crash?

Date: 2012oct24
Language: Java

Q.  How can I make a Java program (or app or servlet) crash?

A.  Here's some code that does it nicely:

String crashy = null; if (crashy.equals("bang")) { return; }
This should also:
assert false : "Let's crash";