what is difference between throw and throws in exception?
Answer Posted / ravivarman
Throw keyword can be used by a program to throw exceptions
explicitly.the execution of the current block stops
immediately after the throw statement.
A method should declare that it can cause an exception and
expects its caller handle or re-throw the exception.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
does java support pointers?
Is a char always 1 byte?
How do you convert bytes to character in java?
What are the different types of inner classes?
Where is singleton pattern used?
What is number data type in java?
What is difference between static class and normal class?
Can memory leak in java?
How many bits is a 64 bit byte?
What is static and final keyword in java?
What is array length in java?
Who is founder of java?
How are this() and super() used with constructors in java programming?
List the three steps for creating an object for a class?
What is a lock or purpose of locks in java?