what difference between throw and throws in exception
handling.
Answer Posted / sidd
In case of java if any error occur deuring the exicution
time throw is use to throwing that that into our catch block
for handling and in case of throws if any error
will occur throws can handle that error.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between variable & constant?
What are encapsulation, inheritance and polymorphism?
Is static a singleton?
What do you mean by order of precedence and associativity?
extending thread class or implementing runnable interface. Which is better? : Java thread
Why java is considered as platform independent?
How would you convert bytes to string?
What is ‘has a’’ relationship in java?
What is floor math?
Can we overload the constructors?
What happens if main method is not static?
What is meant by call by reference?
What’s a deadlock?
How does a for loop work?
Is string passed by reference in java?