When does the compiler supply a default constructor for a
class?

Answer Posted / ravichandra

We cannot supply any constructor in the class the compiler
supply a default constructor.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the driver class?

565


What is contract between hashcode and equal method?

562


If goto and const is reserve words than why it is not work in java?

1501


How do you add an element to a set in java?

495


Explain what are final variable in java?

570






Why parameters should be passed by reference?

496


Have you ever used hashtable and dictionary?

568


What ide should I use for java?

487


What is static variable with example?

556


What is final keyword?

637


What is the syntax and characteristics of a lambda expression? Explain

537


Which is the best approach for creating thread ?

714


What is static method with example?

612


Describe different states of a thread.

571


What are constants?

592