mirror of
https://github.com/Noratrieb/UselessClasses.git
synced 2026-01-16 09:35:07 +01:00
Update Hell.java
This commit is contained in:
parent
23508111af
commit
707063f8ae
1 changed files with 9 additions and 0 deletions
|
|
@ -1,3 +1,12 @@
|
||||||
|
/**
|
||||||
|
* This class tries to create a huge array of longs (1e+22 in total)
|
||||||
|
* This obviously causes an {@code OutOfMemoryError}
|
||||||
|
*
|
||||||
|
* And while the docs of {@code Error} say that an Error shows "problems that a reasonable application
|
||||||
|
* should not try to catch", nothing is actually stopping us from doing it.
|
||||||
|
*
|
||||||
|
* Welcome to Hell.
|
||||||
|
*/
|
||||||
public class Hell {
|
public class Hell {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue