0
Object[] arr = new Object[Integer.MAX_VALUE];

This is throwing exception

Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit

hc_dev
  • 5,553
  • 20
  • 27

0 Answers0