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 annotation in java?
How do you reverse sort a list in java?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
What is deserialization?
How is it possible for two string objects with identical values not to be equal under the == operator?
What is the gregoriancalendar class in java programming?
What is the memory leak in java?
Explain the different forms of polymorphism?
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in
Can we able to pass objects as an arguments in java?
What is the difference between a field variable and a local variable?
Is singleton class immutable?
List implementations of list interface?
Can we have 2 main methods in java class?
What do you understand by final value?