what is difference between throw and throws in exception?
Answer Posted / visweswara rao
throw:- System generated exceptions are automatically
thrown by the Java run-time system.To manualy throw the
exception,we use the keyword throw
throws:- Any exception that is thrown out of a method must
be specified as such by a throws clause
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the final class modifier?
how can you take care of mutual exclusion using java threads? : Java thread
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
What is meant by object?
what is comparable and comparator interface?
What is the use of protected in java?
What do you mean by collectors in java 8?
Which oo concept is achieved by using overloading and overriding?
What is the difference between checked exception and unchecked exception?
What do u mean by variable?
Write a java program to count the number of words present in a string?
What is parsing in java?
What is e java?
Is it possible to specify multiple jndi names when deploying an ejb?
What are the different types of constructor?