KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In Java, the standard way to create an object is using MyClass name = new MyClass(); I also often see the construct new MyClass() { /*stuff goes in here*/ }; I've been looking online for a while and can't find a good explanation of what the second construct style does or how it does it. Can someone please explain how and why you would use the second construct?
Tags (comma-separated)
Save Edits
Cancel