Dave’s Brain
Home
Search
Browse
Recent
Keywords
Other sites
Feedback
Sign in
Random
Crawlers
Programming Tips
- Java: Make a Java program (or app or servlet) crash
Date:
2012oct24
Language:
Java
Q.
Java: 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"
;