Call

A call is the invocation of a function or method.

Related concepts:  FunctionMethodReturn

Closest Wikipedia entry:  Subroutine

Authoritative Definition

Wikipedia does not necessarily offer the best fitting definition of a concept. The exact meaning we attribute to the concept of Call is based on principled authoritative sources such as:

Misconceptions about Call
47 documented Misconceptions

Check Yourself
Misconception
BaseCaseNotNeededJava
Recursive computations do not necessarily need a base case
Misconception
BaseCaseSelfRecursiveJava
The base case of a structural recursion consists of a recursive self-call
Misconception
CallNotStaticallyCheckedJava
A method invocation on a reference of a type that does not have that method won't compile
Misconception
CallOnPrimitiveJava
One can invoke a method on primitive values
Misconception
CallRequiresVariableJava
One needs a variable to invoke a method
Misconception
CallWithoutFrameJava
A method invocation does not necessarily allocate a stack frame
Misconception
CallerFrameContainsCalleeFormalJava
Stack frame of caller includes variables for callee's formal parameters
Misconception
CannotChainMemberAccessesJava
Member accesses cannot be chained together
Misconception
CannotChainMemberToConstructorJava
Method calls or field accesses cannot be chained to a constructor invocation
Misconception
ChainedMethodsNotCalledFromOutsideJava
Chained methods are all called on the object at the beginning of the chain
Misconception
ConstructorAllocatesJava
The constructor allocates the object
Misconception
ConstructorReturnsObjectJava
Constructors need to return objects
Misconception
ConstructorWithoutNewJava
One can write the constructor name, without new, to instantiate a class
Misconception
DeferredReturnJava
A return statement in the middle of a method doesn't return immediately
Misconception
FrameIsClassInstanceJava
A stack frame is the same as an instance of a class
Misconception
NoCallOnStringLiteralJava
One cannot invoke methods on String literals
Misconception
NoInsideMethodCallInConstructorJava
It is foirbidden to call other methods on the same object while inside its constructor
Misconception
NoStringToStringJava
One cannot invoke toString() on a String
Misconception
ObjectsMustBeNamedJava
A variable is needed to instantiate an object
Misconception
OutsideInMethodNestingJava
Nested method calls are invoked outside in
Misconception
ParenthesesOnlyIfArgumentJava
() are optional for method calls without arguments
Misconception
RecursiveCallSiteNoReturnJava
Tail-recursive call sites of non-void methods need no return statement
Misconception
ReturnCallJava
Return statements need () around the return value
Misconception
ReturnUnwindsMultipleFramesJava
A return statement can unwind multiple call stack frames
Misconception
RightToLeftChainingJava
Chained accesses are invoked from right to left
Misconception
StackTraceIsCallHistoryJava
A stack trace is the sequence of previously called methods
Misconception
StaticCallPolymorphicJava
A static method call is dispatched polymorphically at runtime based on the argument types
Misconception
StaticDispatchJava
The method to be called is determined by the static type
Misconception
SuperAlwaysHasParenthesesJava
To call a method on a superclass, parentheses are needed after the keyword super
Misconception
SuperNotFirstStatementJava
super() can be called anywhere in the constructor of a subclass
Misconception
CallbackParametersInCallerJavaScript
Parameters of a callback function may be written as parameters of the caller function
Misconception
FunctionAsValueWithParenthesesJavaScript
To use a function as a value, one needs to have parentheses after its name
Misconception
FunctionsCannotBeImmediatelyInvokedJavaScript
Functions cannot be called in the expression in which they are defined
Misconception
NoFunctionCallsChainingJavaScript
It is not allowed to chain function calls
Misconception
NumberOfParametersMatchArgumentsJavaScript
Functions must be called with the same number of arguments as defined in their signature
Misconception
CannotChainAttributeAccessesPython
Attribute accesses cannot be chained together
Misconception
CannotChainAttributeToObjectInstantiationPython
Method calls, and attribute accesses in general, cannot be chained to a constructor invocation.
Misconception
DeferredReturnPython
A return statement in the middle of a function doesn't return immediately
Misconception
InitCreatesPython
__init__ must create a new object
Misconception
InitReturnsObjectPython
__init__ needs to return an object
Misconception
ObjectsMustBeNamedPython
A variable is needed to instantiate an object
Misconception
OutsideInFunctionNestingPython
Nested function calls are invoked outside in
Misconception
ParenthesesOnlyIfArgumentPython
() are optional for function calls without arguments
Misconception
ReturnCallPython
Return statements need () around the return value
Misconception
ReturnUnwindsMultipleFramesPython
A return statement can unwind multiple call stack frames
Misconception
RightToLeftChainingPython
Chained accesses are invoked from right to left
Misconception
BaseCaseNotNeededScratch
Recursive computations do not necessarily need a base case