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
How do you use spaces in java?
What is map and hashmap in java?
How will you load a specific locale?
What do you mean by platform independence?
What is the byte range?
What is the benefit of singleton pattern?
What is meant by object oriented programming – oop?
Define inheritance with reference to java.
Is this valid in java ? Can we instantiate interface in java?
What is the collections api?
Is string an object?
What is collection class in java? List down its methods and interfaces.
What is the main function in java?
what is the volatile modifier for? : Java thread
What variables are stored in stack?