Update Hell.java

This commit is contained in:
nora 2021-04-10 20:37:37 +02:00 committed by GitHub
parent 23508111af
commit 707063f8ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 static void main(String[] args) {