what is difference between throw and throws in exception?
Answer Posted / shiva
throw is used for to through exception system explicitly,and
throws is u sed for to throws exception means throws
ioexception and servletexception and etc.........
| Is This Answer Correct ? | 41 Yes | 29 No |
Post New Answer View All Answers
What is pojo class in java?
Why lambda expression is used in java?
What is the difference in between cpp and java? Can u explain in detail?
What is string in java with example?
How can a gui component handle its own events?
What is a local class in java?
What is the benefit of using enum to declare a constant?
What exactly is java?
Explain the use of volatile field modifier?
Why is singleton not thread safe?
What is 16 bits called?
Can we have more than one package statement in the source file?
Can vector have duplicates in java?
Why string is immutable with example?
What is autoboxing and unboxing?