In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Sharp Interview Questions

hi, I am a begineer to c sharp. I have written a code for finding out prime numbers. Can anyone identify what are the flaws in my code. Kindly donot complex the code or present logic because i am new to c sharp and just started learning programming language.Thanks in advance. class Program { static void Main(string[] args) { int a,b=1; a = int.Parse(Console.ReadLine()); c= int.Parse(Console.ReadLine()); if (a % b == 0 && a % 2 != 0 && a % a == 0) Console.WriteLine(a); else if (a % b == 0 && a % 2 == 0) Console.WriteLine(a%2); Console.WriteLine("Number is not PRIME"); Console.ReadLine(); } } }

2 Answers  


What is the Difference between read only and constant variables?

14 Answers   SilverKey,


What kind of the information stored inside the assembly?

0 Answers   CitiusTech,


What is datasource c#?

0 Answers  


For methods inside the interface why can’t you specify the accessibility modifier?

0 Answers   Siebel,






Why is dll used?

0 Answers  


My switch statement works differently! Why?

0 Answers  


give an example for suspending, resuming, and stopping a thread ?

1 Answers   GCI,


What does addressof operator do in background ?

0 Answers  


Structs are largely redundant in c++. Why does c# have them?

0 Answers  


Can list contain duplicates c#?

0 Answers  


Can properties be private in c#?

0 Answers  


Categories