what is difference between throw and throws in exception?
Answer Posted / srinath
throws keyword is used 2 delegate the responsibility of
exception handling 2 caller method where as throw keyword
used 2 hand over the creted customised excetion object 2
jvm 2 handle the excepion.
| Is This Answer Correct ? | 33 Yes | 7 No |
Post New Answer View All Answers
How do you use parseint in java?
What is difference between equal and == in java?
What is tree node in java?
Give an example of use of pointers in java class.
In which order the iterator iterates over collection?
What is the abstract class?
What are the advantages of exception handling?
what is the constructor and how many types of constructors are used in java?
What are the two types of java?
What do you mean by platform independence? What is an interface?
can rmi and corba based applications interact ?
How does compareto method work?
Write a program to check for a prime number in java?
Explain the polymorphism principle?
Which is illegal identifier in java?