adplus-dvertising
frame-decoration

Question

How to handle the exception in constructor?

a.

We have to throw an exception

b.

We have to return the exception

c.

We have to throw an exception & return the exception

d.

none of the mentioned

Answer: (a).We have to throw an exception

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How to handle the exception in constructor?