In what circumstances, compiler will supply a default
constructor for a class?
Answer Posted / ranganathkini
If no constructors are explicitly defined for the class,
Java supplies a default no-arg constructor which does
nothing more than initialize the fields of the class to
their default value.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the Class Libraries ?
How do I get a substring?
What is java thread dump, how can we get java thread dump of a program?
Is hashset ordered?
What happens when heap memory is full?
What are the escape sequences in java?
What does nullpointerexception mean?
What is an example of a boolean?
How many types of interfaces are there?
What is a top level class in java?
What is java used for?
What do you understand by weak reference?
Is java still necessary?
What is a line break example?
What does the “static” keyword mean? Can you override private or static method in java?