What is the prototype of the default constructor?
public class Test { }
public class Test { }A. public Test(void)
B. Test( )
C. Test(void)
D. public Test( )
E. None of these
Answer: Option D
Solution (By Examveda Team)
Option A and B are wrong because they use the default access modifier and the access modifier for the class is public (remember, the default constructor has the same access modifier as the class).
Option C is wrong. The void makes the compiler think that this is a method specification - in fact if it were a method specification the compiler would spit it out.

Even if class is defined public, default constructor need Not be defined as public.
Pls check.
You mentioned answer is option D.but while explaining answer you mention option D is wrong by mistakely.Please edit this.Thank you