what is difference between throw and throws in exception?
Answer Posted / neema
"throw" is used to handle user-defined exception.
JVM handles the exceptions which are specified by "throws"
| Is This Answer Correct ? | 261 Yes | 50 No |
Post New Answer View All Answers
What are the differences between heap and stack memory in java?
What are the ways in which a thread can enter the waiting state?
What is final, finally, finalize?
What is the difference between pass by reference and pass by pointer?
What is a for loop in java?
What is the static variable?
What is the output of the below java program?
What is protected in java?
Why are constructors used?
What data type is true or false?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
What are the loops in java?
What are methods?
What is the epoch date?
which class is the wait() method defined in? : Java thread