What did the designers of JVM Learn From COBOL?
ANSWER: A “subroutine” mechanism for which:
- The scope of the subroutine is not syntactically delineated
- a statement can be part of more than one subroutine
- No notion of a call stack, return addresses are retrieved at return statement
- LIFO behavior is not guaranteed
- return to wrong call site