What is the difference between throw and throws?
Answer Posted / neeraj kumar singh
When we wants to throw an exception explicitly in the program use the throw keyword.Whether a throws keyword is used when a system throws an exception itself.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How do you decide when to use arraylist and linkedlist?
What is a get method?
how to create multithreaded program? : Java thread
What's the default access specifier for variables and methods of a class?
How to provide security in java
What is the advantage of functional interface in java 8?
What is generic type?
What is :: operator in java?
When will we use them?
Is arraylist ordered?
What is difference between filereader and bufferedreader?
How do you use find and replace?
What is the difference between a switch statement and an if statement?
What is arguments in java?
When parseint method can be used?