Explain about throw keyword?

Answer Posted / sabarish

in java , throw keyword is used to throw an exception which
cannot be trapped.

Is This Answer Correct ?    19 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

790


What are namespaces, and how they are used?

749


Is Multiple-inheritance supported by c#?

729


Why do we use struct in c#?

696


What is lambda expression in c#?

681






Can we inherit a private class in c#?

625


Differentiate between method overriding from method overloading with its functionality?

702


What are fields in c#?

653


What are generic types?

682


What is the difference between array and arraylist in c#?

697


Describe an interface class?

741


What is transparent caching with aop ?

775


Distinguish between the Debug class and Trace class with its functionality?

733


What is int tryparse in c#?

665


How can an inner class access the members of outer class?

716