what is difference between throw and throws in exception?
Answer Posted / chirag
throw will throws the exception,
and throws declares that the function will throw an exception
you should catch all every functions throwing and exception
u declare it or catch it
| Is This Answer Correct ? | 29 Yes | 25 No |
Post New Answer View All Answers
What do you mean by JVM?
What is the importance of finally block in exception handling?
How many functional interfaces does java 8 have?
What is a Hash Table? What are the advantages of using a hash table?
Explain about the main() method in java?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What do you mean by hashing?
What is linkedlist in java?
What are peerless components?
Why do we use threads in java?
Explain about serializable interface in java?
What is the final variable?
Explain the importance of finally over return statement?
How to use Media tracker Class.
How to convert string to char and vice versa?