what is difference between throw and throws in exception?
Answer Posted / deewan singh
throw keyword is used to throw Exception from any method or static block in Java while throws keyword, used in method declaration, denoted which Exception can possible be thrown by this method.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the destroy method?
If a class is declared without any access modifiers, where can the class be accessed?
How can we run a java program without making any object?
What java ide should I use?
What is meant by structural programming?
what type of questions asked for barclays technologies pune please send urgent
What is use of static method?
Which package is imported by default?
What are runtime exceptions?
What are the parts of methodology?
What is bigger kb or mb?
What are the characteristics of Final,Finally and Finalize keywords.
What is pass by value?
Tell me the Importent classes in net package?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?