Java Language Specification, Version Java SE 21 Edition
8.4. Method Declarations5 Documented Misconceptions
MethodWithoutReturnType
A method declaration does not need to include a return typeMethodsWithoutClass
Methods can be defined outside a classRecursiveActivationsShareFrame
Recursive calls of a method share a stack frameRecursiveMethodImpliesRecursiveType
A class with a recursive method represents part of a recursive data structureRecursiveMethodNeedsIfElse
A recursive method needs to contain an if-else statement