When does the compiler supply a default constructor for a
class?
Answer Posted / satish
when we do not specify constructor expectly,java complier
provides default constructor at the time of compliation time
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
How many types of classes are there in java?
Can we inherit a class with private constructor?
What is bufferedreader in java?
Why does my function print none?
How are multiple inheritances done in Java?
What is an eror in java?
What is valid keyword in java?
How will you get the platform dependent values like line separator, path separator, etc., ?
How many arguments can be passed to main ()?
What are methods of a class?
Explain about narrowing conversion in java?
How do you check if a number is a perfect square?
What is string in java with example?
Where are local variables stored?
What is exception propagation?