When does the compiler supply a default constructor for a
class?
Answer Posted / sudhakar rao
When we donot override the default constructor in a class,
which is extended implicitly by our class from java.lang
package, compiler supplies it.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is variable and example?
What is a java object and java application?
What is arraylist e?
What is scanner in java?
Explain the difference between treeset and treemap in java?
What is a return in java?
What is prime number in java?
Explain jdk, jre and jvm?
What is getkey () in java?
What is a string what operation can be performed out with the help of a string?
What is cr keyboard?
What is the purpose of lambda expressions?
What is the driver class?
What is the importance of main method in Java?
How do you add an element to a hashset in java?