Search
Star
1.6k
Feedback
Setup for Free
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
?
Java Community | Help. Code. Learn.
Join
We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!
27,643
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Similar Threads
Java Constructors
JC|HCL
Java Community | Help. Code. Learn. / java-help
4mo ago
Constructors
JC|HCL
Java Community | Help. Code. Learn. / java-help
3y ago