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
Why java is considered as platform independent?
What are the data types supported by java?
What is the abstraction?
What is java developer skills?
What is a module function?
explain different ways of using thread? : Java thread
Differentiate jar and war files?
Can we call a non-static method from inside a static method?
Is char a data type in java?
Can a constructor be made final?
Difference between method overloading and method overriding in java ?
When does an object becomes eligible for garbage collection in java?
What is the purpose of garbage collection in java, and when is it used?
What is command line argument in java?
What is anagram word?