what is difference between throw and throws in exception?
Answer Posted / chirag
throw will throws the exception,
and throws declares that the function will throw an exception
you should catch all every functions throwing and exception
u declare it or catch it
| Is This Answer Correct ? | 29 Yes | 25 No |
Post New Answer View All Answers
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
What is tree node in java?
Can we overload the constructors?
What is a variable analysis?
What is the difference between access specifiers and access modifiers in java? 16
What is Major and importance difference between for and foreach loop ?
Java is Pass by Value or Pass by Reference?
What is the use of http-tunneling in rmi?
What is considered an anti pattern?
Is singleton class immutable?
What do you mean by constant time complexity?
How does regex work?
What are the differences between wait() and sleep()?
When the constructor of a class is invoked?
What are register variables what are the advantages?