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 is treemap in java?
What is the use of arrays tostring () in java?
Explain the usage of this with constructors?
What is lambda expression in java?
Which sort is best in java?
What is passing by reference in java?
What are the different conditional statements?
What is a “stateless” protocol ?
What is an example of a conditional statement?
What is string pool?
What is try-with-resources in java?
Does java vector allow null?
What is the equal sign?
Can an integer be null java?
What is singleton math?