In case the variable is null, instanceof returns false, so it also checks first if the variable is null. In the Effective Java book we can find:.
確定! 回上一頁