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 pass by value?
Which class is the superclass of all classes?
What are the ways in which a thread can enter the waiting state?
What is the synonym of string?
What is collections framework?
Can we override constructor?
What is run time allocation?
Explain the importance of import keyword in java?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
What language is pass by reference?
What is the difference between abstract class and interface1? What is an interface?
Does unicode support all languages?
How do you sort in java?
What are the methods used to implement for the key object in the hash map?
What is executor memory?