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


Please Help Members By Posting Answers For Below Questions

What is annotation in java?

569


How do you reverse sort a list in java?

503


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

588


What is deserialization?

581


How is it possible for two string objects with identical values not to be equal under the == operator?

521






What is the gregoriancalendar class in java programming?

562


What is the memory leak in java?

520


Explain the different forms of polymorphism?

559


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

1591


Can we able to pass objects as an arguments in java?

530


What is the difference between a field variable and a local variable?

564


Is singleton class immutable?

533


List implementations of list interface?

555


Can we have 2 main methods in java class?

533


What do you understand by final value?

581