def
keyword.->
operatornull
type is assumed to be the return type. The null
type is returned from a function in 3 cases: 1. When there's no return
statement in the function. 2. When there's an empty return
statement in the function. 3. When null
is explicitly returned from the function.