java.lang.OutOfMemoryError that is an Error. Exception here is related to the recoverable exceptions.