What is the difference between throw and throws?
Answer Posted / balaji
throw:it is used to raise exception explicitly
that means it is use when a user defined exception is raised
throws:if a method is capable of throwing an exception but
it does not handle the exception that must be specified by
using "throws" class
Is This Answer Correct ? | 23 Yes | 1 No |
Post New Answer View All Answers
Is java ee a framework?
What is the new line character?
What is dot operator?
How big is a pointer?
What are the advantages of autoboxing?
List implementations of list interface?
Why is java not 100% pure oops?
What is charat java?
How do you check if two given string are anagrams?
What does singleton class mean?
What is a nonetype?
What are the properties of thread?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
What is return keyword in java?
what is the use of bean managed and container managed with example?