From 707063f8ae13c8ae3a678b024c1c97b37927e98f Mon Sep 17 00:00:00 2001 From: Nils <48135649+Nilstrieb@users.noreply.github.com> Date: Sat, 10 Apr 2021 20:37:37 +0200 Subject: [PATCH] Update Hell.java --- .../java/com/github/nilstrieb/uselessclasses/Hell.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/github/nilstrieb/uselessclasses/Hell.java b/src/main/java/com/github/nilstrieb/uselessclasses/Hell.java index f956c81..aa41bde 100644 --- a/src/main/java/com/github/nilstrieb/uselessclasses/Hell.java +++ b/src/main/java/com/github/nilstrieb/uselessclasses/Hell.java @@ -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) {