Select from following answers:- Null
- ""
- Throw Compile-time error
- Throw Run-time error
- All Above
It will throw a Run-Time error saying that Object Reference not set to an instance of an Object.
Because ToString() does not handle Null and as variable str has Null value.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator