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
How java enabled high performance?
Can we rethrow the same exception from catch handler?
What is an eror in java?
Explain wait(), notify() and notifyall() methods of object class ?
What do you mean by light weight and heavy weight components?
What are the advantages of defining packages in java?
What is sortedmap interface?
How use .contains in java?
What are thread groups?
What is java util hashmap?
Can a static method be overridden in java?
What is operator overloading. Is it is supported in java?
Can private class be inherited in java?
What do you know about the garbate collector?
What are user defined exceptions?