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
What is the difference between the size and capacity of a vector?
What is a parameter used for?
What is passing by reference in java?
How do you trim a space in java?
Give me some null interfaces in java?
Can you explain inner class.
What do you understand by access specifiers in Java?
What is a buffer in computer?
What is tree in java?
What is an anonymous class in java?
What is a variable declaration?
What super () does in java?
What is multiple inheritance? Is it supported by java?
What is a generic code?
What is the list interface in java programming?