Buy Questpond's video subscriptions on
huge discount
.
Online: 3185
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Exclusive Interviews
>
C#
>
Post
|
Interview FAQs
|
Exclusive Interview Home
|
Interview Home
|
Search
Loading ...
try { int n1,n2; n1=Convert.ToInt32(args[0]); n2=Convert.ToInt32(args[1]); int res; res=n1/n2; Console.WriteLine("res:"+res); } catch(Exception e) { Console.WriteLine(e.Message); } catch(FormatException e) { Console.WriteLine("Format Exception-"+e.Message); } If command line arguments are given as 12 r what is the output?
Posted by
deccansoft
on 8/4/2010 | Category:
C# Interview questions
| Views: 4469
An Error occurs telling " A Previous catch clause already catches all exceptions" so catch block of FormatExeption should be placed first follwed by Super class Exception handler.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous question :
Is "Divide By Zero" Exception valid for Floating d ...
Next question > :
A parent class is declared as Virtual, binding is ...
Comments or Responses
Login to post response
More Interview Questions
A parent class is declared as Virtual, binding is dynamic then child s ...
A child class inheriting an abstract class
Child class constructor first calls
A _______________ is used to release the resources that an object is h ...
A property procedure doesn't hold any data by itself instead it depend ...
A property is made of 2 blocks ___________
A property ____________ a field member of the same class.
The methods of the object are used to describe the ___________