Explain about throw keyword?
Answer Posted / tiger kumar
yes,its used to throw the user defined exception.
But its not always good habit to use throw exception.
Some times we can predict it will throw the exception.If we
know the error will come there in the earlier means why we
need to use the exceptions.we can solve it while writtting
code itself.
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
What is alias in c#?
What is the difference between string and string in c#?
Explain dataset.acceptchanges method in .net?
Explain clr in brief.
Why we use extension methods in c#?
What is the difference between interface and functional interface?
What is an expression in c#?
In which way a two-dimensional array declared in C#?
Is c# a backend language?
Differentiate between sqlclient oledb and providers?
These questions were asked me in a technical interview: •If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? •How security pinholes will be handled in an application? •What things should be considered while writing a web application? •How will you do load/performance testing of web application? Which framework you will use for it? •How will you implement a cache for results which require a DB access? Please let me know how to write an web application considering all these points. I am not so much aware of architechural design of web application. Your guidelines will be helpful.
Can we inherit a private class in c#?
What is dbcontext c#?
Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records
When do you generally use a class over a struct?