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 use of valueof () in java?
Give some features of interface?
What is == and === in javascript?
How do you write a good declaration?
Explain about oops concepts.
What is string and example?
What is variable and constant explain with example?
What is the purpose of a transient variable?
String class is defined under which package in java?
What is sizeof in java?
List two java ide’s?
What do you mean by of string::valueof expression in java 8?
Explain a situation where finally block will not be executed?
Are arrays immutable in java?
What is hashmap in java?