New course! Every coder should learn Generative AI!
Try a free lesson0
How do i recognize constructor in java program?
Java
2 Answers
+ 2
The constructor is a method that has the same name as the class where it is located.
+ 1
And it doesnt have a return type