Restrictions

You cannot assign one of the following values to a variable of standard type:
  • The value null. (Exception: If you assign the value null to a string variable, it is converted to the string 'null').
  • A call to a void method.
  • A call to a method that returns an array.