In what circumstances, compiler will supply a default
constructor for a class?
Answer Posted / uthrakumar-wipro technologies
if there is no constructor was defined explicitly it will
define the default constructor...the logic in this was we
are creating a constructor with out our knowledge while
creating an object as follows....
<classname> <obj>=new <classname()>------this is
the constructor we are defining .............
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can arraylist contain null values?
How you can force the garbage collection?
Can we define constructor in inner class?
What is meant by binding in rmi?
Why is string class considered immutable?
what is the significance of listiterator in java?
What does i ++ mean in Java?
Why main method is static in java?
What are the topics in advance java?
What are dot operator queries?
How garbage collection is done in java?
Can an integer be a string?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
Can we increase size of array?
How do you know if a value is nan?