What is the difference between throw and throws?
Answer Posted / neeraj kumar singh
When we wants to throw an exception explicitly in the program use the throw keyword.Whether a throws keyword is used when a system throws an exception itself.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Give reasons supporting that string is immutable.
How many types of exception can occur in a java program?
What was java originally called?
Which is faster set or list in java?
What are the main uses of this keyword?
What are the two environment variables that must be set in order to run any java programs?
What language is an assembler written in?
What is the differences between c++ and java? Explain
What are different access specifiers in java?
Differences between C and Java?
Write a program to reverse array in place?
What are three advantages of using functions?
What is the difference between a vector & an array list?
How to do a true java ping from windows?
What do you understand by casting in java language?