What is the prototype of the default constructor?
public class Test { }

What is the prototype of the default constructor?

public class Test { }
Correct Answer public Test( )

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.

Bissoy MCQ

Related Questions

What is the prototype of the default constructor of this Java class?
public class prototype { }
To determine whether one object is the prototype of (or is part of the prototype chain of) another object, one should use the
How is throwaway prototype different from evolutionary prototype ?