In java OutOfMemoryError is a subclass of java.lang.VirtualMachineError
and it’s thrown by JVM when it ran out of heap memory. We can fix this
error by providing more memory to run the java application through java
What is an exception?
Which is superclass of Exception?
What is Exception and Error ?
What is exception handling?
what are the the main keyword used in exceptation handling?
Explain Java Exception Hierarchy followed by Throwable class?
What are important methods of Java Exception Class?
What is difference between Checked and Unchecked Exception in Java?
What is difference between throw and throws keyword in Java?
How to write custom exception in Java?
What is OutOfMemoryError in Java?
What are different scenarios causing “Exception in thread main”?
What is difference between final, finally and finalize in Java?
What happens when exception is thrown by main method?
Can we have an empty catch block?
What is the difference between Error and Exception?
Can static block throw exception?
What is finally block?
Can we have a try block without catch or finally block?
Can we have multiple catch blocks following a single try block?
Is it possible to have finally block without catch block?
When a finally block does not get executed?
Can we handle more than one exception in a single catch block?
How are the exceptions handled in java?
What is difference between ClassNotFoundException and NoClassDefFoundError?
What is throw keyword?
What is use of throws keyword?
What are the possible combination to write try, catch finally block?
How to create custom Exception?
What is StackOverflowError?
What are the advantages of using exception handling?