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
What data type is a string?
Are arrays static in java?
how to deploy apache tomcat server to weblogic server in java
What restrictions are placed on method overloading?
What is serial version uid and its importance in java?
What is size_t?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
Is 0 true or false?
What is the main use of generics in java?
Is an array a vector?
What function extracts specified characters from a string?
What are 3 boolean operators?
Is arraylist ordered in java?
Is string a datatype?
Can a main method be overloaded?