What will happen,when we compile below C# function?

private void check(int id)
{
try
{
}
catch (Exception ex)
{
throw ex;
}
}

 Posted by vishalneeraj-24503 on 11/28/2013 | Category: C# Interview questions | Views: 4050 | Points: 40
Select from following answers:
  1. It will throw a run-time error.
  2. It will compile successfully.
  3. It will throw a compile-time error.
  4. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response