Synechron Interview Question

Create a Pojo class in such a way when ever you create the class object it will give you exceptions? it seems interviewer dont want to get satisfied with my answers

Interview Answer

Anonymous

Sep 17, 2017

1 . Throw Exception inside the constructor 2.Throw Exception inside the initialization block 3 Create abstract class

1