what is the difference between through and throws?
Answer Posted / sharad
I think it's not through but throw. So the question is what is the difference between throw and throws?
Ans. Throw is used to through an exception and throws is used to declare in the method beginning that this method can throw an unchecked exception and which it does not handle.
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is deque in the java collections framework? : java collections
What are the differences between the java collection and the java list? : java collections
How is hashset maintained in memory by java ?
What are the types of the main implementing classes in the map interfaces? : java collections
What are the different types of ways where you can iterate over a list? : java collections
What are the types of java collections? : java collections
How do I find jre path in windows?
What are the uses of the set interfaces in the java collections? : java collections
What is the use of the list interface in the java collection? : java collections
What do you understand by synchronization? Why is it important?
What is an algorithm in java collection framework? : java collections
What are the different types of classes implemented in the set interfaces? : java collections
Should we create system software ( e.g operating system ) in java ?
Which interface does java.util.hashtable implement?
What are the queues in the java collection framework? : java collections