what is difference between throw and throws in exception?
Answer Posted / prabakar
throw:
raised the exception which are occured as a method body.
Throws:
it's the communication bridge between calling function and called function.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to sort array in descending order in java?
What is the purpose of using break in each case of switch statement?
What is difference between path and classpath?
Why 1 is not a prime number?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
What is volatile data type?
Can private class be inherited in java?
What is callablestatement? How you can call stored procedure to pass in parameter?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What is scope & storage allocation of static, local and register variables? Explain with an example.
Is null an object java?
What is an example of character?
Can you run java program without main method?
Is singleton class immutable?
Write a program to find the whether a number is an Armstrong number or not?