What happens if we dont use constructor in Java?

Answer: Java does not actually require an explicit constructor in the class description. If you do not include a constructor, the Java compiler will create a default constructor in the byte code with an empty argument .

Sizin İçin Seçtik  What is Dart unit?

Leave a Reply

Your email address will not be published. Required fields are marked *