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 / meena

In try block the SQL query will be executed so the exception
will match the SQLException catch because all type of SQL
exception will be match in this SQLException

if we wrote normal query in try block then it will match
Exception catch

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between viewbag and viewdata in mvc?

970


What is .net framework in simple terms?

1019


What is oauth in web api?

1035


What are the advantages of asp.net mvc?

1037


What is representational state transfer (rest) mean?

983


What does a viewmodel do?

1057


Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?

2721


What are the components required to create a route in mvc?

1077


what is eager loading?

1017


What is difference between html.beginform and ajax.beginform?

1008


If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

2584


Explain what is routing?

980


What are the possible razor view extensions?

992


What you mean by routing in asp.net mvc?

1061


What is RouteConfig.cs in ASP.Net MVC 4?

1076