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
Where local and global variables are stored?
What is import java util arraylist?
What is use of map in java?
What is the difference between jdk and jre?
What is the difference between overriding and overloading in OOPS.
What is the default value of local and global variables?
What is the maximum size of byte array in java?
What are the differences between the constructors and methods?
Can a serialized object be transferred via network?
Can we start a thread twice in java?
What is http client in java?
What is deserialization?
What is java english?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
Explain how hashmap works?