If you are executing the program without arguments then
arg[]
will be empty and you will get that exception.
Try running like this from the command line:
c:\>yourprogram.exe abhinav
or change your code to:
if(args.length >0)
Console.WriteLine("Hello, {0}!", args[0]);
else
Console.WriteLine("Please supply an argument when executing.");