OutOfMemoryError

Alan: im curious… what happens if you catch an OutOfMemoryError
Alan: will the program just grind to a halt?
matts0226: possibly
matts0226: try it
Alan: i will sometime
Alan: 🙂
Alan: and just make a loop that creates objects
matts0226: yeah
matts0226: do it recursively
Alan: Object[] objs = new Object[Integer.MAX_VALUE];
matts0226: YES!
matts0226: that’d be great]
Alan: then for (int i=0; i

Leave a Reply

Your email address will not be published. Required fields are marked *