All classes have constructors by default : if you do not create a class constructor yourself, Java creates one for you. However, then you are not able to set initial values for object attributes.
Read moreWhat if a class has no constructor Java?
Java does not actually require an explicit constructor in the class description. If you do not include a constructor, then the Java compiler will create a default constructor with an empty argument .11 Ağu 2016
Read moreCan I have class without constructor?
Answer: Yes, C# class without constructor is possible . In fact, we can have a class without any constructor in C#. If we don’t declare any constructors in a class, the compiler automatically provides a public parameter less constructor. And it is ok to instantiate the class without constructor.
Read more