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
Anonymous
1 . Throw Exception inside the constructor 2.Throw Exception inside the initialization block 3 Create abstract class
Check out your Company Bowl for anonymous work chats.