Interview Questions

What is the difference between Convert.ToInt32 and int.Parse?

ASP.NET and .NET WEB Questions and Answers


(Continued from previous question...)

What is the difference between Convert.ToInt32 and int.Parse?

What is the difference between Convert.ToInt32 and int.Parse?
* Both are same and both can handle null value.
* Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.
* int.Parse can handle null value but Convert.ToInt32 throws ArgumentNullException error.
* Both Convert.ToInt32 and int.Parse cannot handle null value.


Convert.ToInt32 can handle null value but int.Parse throws ArgumentNullException error.

(Continued on next question...)

Other Interview Questions