Programming Misconceptions
Home
Misconceptions
Concepts
Languages
Textbooks
Contributors
About
Home
Languages
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
RecursiveCallSiteNoReturn
Tail-recursive call sites of non-void methods need no return statement
VoidMethodNotRecursive
A method with void return type can't be recursive
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