Answer:
The IS operator checks whether an object is compatible with a given type, and the result of evaluation will be boolean: true/false and also the IS operator will never throw an exception.
The AS operator is like a cast except that it yields NULL on conversion failure instead of returning an exception.
Asked In: Many Interviews |
Alert Moderator