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 int lol?
Why is java called java?
Why string is immutable with example?
Can a constructor have different name than a class name in java?
Can we override static methods in java?
What is the purpose of a default constructor?
Why char array is preferred over string for storing password?
Can you tell me range of byte?
What is compiler and what its output.
How many types of string data types are there?
Garbage collection in java?
What is the symbol for average?
How to restrict a member of a class from inheriting by its sub classes?
Can you extend main method in java?
Why java is considered dynamic?