Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeLanguages
Java
jls21
Method Result

Java Language Specification, Version Java SE 21 Edition
8.4.5. Method Result

Read this Section of the Authoritative Specification

https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.4.5

3 Documented Misconceptions

Misconception
RecursiveCallSiteNoReturn
Tail-recursive call sites of non-void methods need no return statement
Misconception
VoidMethodNotRecursive
A method with void return type can't be recursive
Misconception
VoidMethodReturnsValue
A method with void return type can return a value

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors