What Happens When New Fails #1248
What happens when new fails?
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 Memory Allocation & Scope of Variable - OOPs MCQ: New Operator - Quiz No.1.
What happens when new fails?
Returns zero always
Throws an exception always
Either throws an exception or returns zero
Terminates the program