Java Community | Help. Code. Learn.JC|HCL
Java Community | Help. Code. Learn.โ€ข16mo agoโ€ข
5 replies
6ydg

Java constructors

As Ive read constructors are automatically run by java, but so is main () method, so whats their point and why cant I just put all of constructor code in front of main() method?
Was this page helpful?