How do you call constructor?

1 answer

Answer

1002870

2026-05-02 12:50

+ Follow

Java
Java

Constructors in Java cannot be invoked explicitly. They are invoked automatically when an object is created. In Java if u dont write any code for constructor, by default compiler inserts a zero argument constructor. If required, it can be overrided.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.