In what circumstances, compiler will supply a default
constructor for a class?
Answer Posted / vijayakumar chinnasamy
If there is no constructor in the class , then the compiler
create a default constructor with access specifier of class.
class A{ } - compiler create default constructor for this
class.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between yielding and sleeping?
Is string is a data type?
What are the rules for naming an array?
What is flush buffer?
What is sorting algorithm in java?
What do you know about the garbate collector?
How does a for loop work java?
What is the final field modifier?
Why java doesn’t support multiple inheritances?
how to create multithreaded program? Explain different ways of using thread? : Java thread
Does treeset use compareto?
What about static nested classes in java?
What is the console in java?
What does pointer mean?
What is jar?