Softsuave Interview Question

constructor looping

Interview Answers

Anonymous

Aug 19, 2016

no answer

9

Anonymous

Feb 9, 2019

In my Opinion, Constructor looping means "Recursive Constructor Invocation"....It means that when suppose you have two constructors (one is parameterized and other one happens to be default). When you are calling other constructor(Using this method) in one constructor and vice versa. This leads to infinite looping of calling constructors (leads to error saying "Recursive Constructor Invocation") Thanks!!

2