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
What type of variable is gender?
Can substring create new object?
What is meant by memory leak?
How many types of classes are there in java?
Lowest Common ancestor in a Binary Search Tree and Binary Tree.
How do you convert boolean to boolean?
What are the two basic ways in which classes that can be run as threads may be defined?
How do you execute a thread in java?
What is the difference between abstract class and interface1? What is an interface?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
Can a method be static?
Is 0 a prime number?
Why stringbuilder is not thread safe in java?
What is string and example?
What is wrapper class html?