Which of the following statements is correct about constructors?

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
Which of the following statements is correct about constructors?

1.If we provide a one-argument constructor then the compiler still provides a zero-argument constructor.

2.Static constructors can use optional arguments.

3.Overloaded constructors cannot use optional arguments.

4.If we do not provide a constructor, then the compiler provides a zero-argument constructor.


More MCQS Questions and answers

R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!