Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Requirement is:

try
{
\\SQL Query
}
catch(Exception i)
{
print a
}
catch(SQLQueryException e)
{
\\SQL Query
}


Qu)I Got Exception in "try" block. Which "catch" statement
(i.e. 1st catch or 2nd catch ) catches the exception and
Why???

Answer Posted / parikshit

it will give compile time error as, the sequence of
exception class has to be Most Specific => General.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the greatest advantage of using asp.net mvc over asp.net webforms?

1055


What is .net architecture and framework?

1100


What are Non Action methods in ASP.Net MVC?

1127


In razor syntax, what is the escape sequence character for @ symbol?

1039


What are ajax helpers in asp.net mvc?

1129


Explain the types of Scaffoldings.

1132


What are advantages of Dependency Injection (DI) in ASP.Net MVC?

1140


What is the use of the default route?

1102


What is attribute routing in mvc?

1183


In which assembly is the mvc framework defined?

1086


Is mvc 4 supporting windows azure sdk (software development kit) ?

1081


what is code first approach?

1199


Can you please explain the request flow in ASP.NET MVC framework?

1176


Is .net core replacing .net framework?

1028


How route table has been created in asp.net mvc?

1037