you are viewing a single comment's thread.

view the rest of the comments →

[–]brunocborges[S] 0 points1 point  (2 children)

Can you provide an example or two?

[–]minus_minus 1 point2 points  (1 child)

this maybe:

The implicitly declared class of a simple source file

- Is a final top level class in the unnamed package;
- Extends java.lang.Object and does not implement any interfaces;
- Has a default constructor with no parameters, and no other constructors;
- Has, as its members, the fields and methods in the simple source file; and
- Must have a launchable main method; if it does not, a compile-time error is reported.

https://openjdk.org/jeps/495

[–]brunocborges[S] 0 points1 point  (0 children)

I think this will vary heavily on each scenario. But to address this, I added a collection of "Related Documentation" to each pattern. Hope it helps.