What is the difference between throw and throws?
What is the similarity between try and throw?
Answers were Sorted based on User's Feedback
Answer / giri
throw is used to throw an exception manually, where as
throws is used in the case of checked exceptions
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / amar
throw is a statement level.throws is a method level.
In manual exception handling,we can also use the throws to
handle the excepions by the jvm,insted of handling there.
| Is This Answer Correct ? | 2 Yes | 0 No |
What are Normalization Rules? Define Normalization?
What is a package in java? List down various advantages of packages.
Marker interface means , interface which has no methods.Then what is the necessity of its usage.I read "it tells the compiler that it should be treated differently ". "It is used to store state of an object". But still am not clear.Please explain clearly.
What is thread pool in java with example?
How do you remove all elements from an arraylist in java?
What is fail first in java?
What is the Layout for ToolBar?
Can we overload run() method in java?
class A{ some variables; public void a()throws Excepion1,Exception2{....} } class B extends A{ variables... public void a()throws E2,E3{.....} } Qns: here override of methods occurs or not,ore else wil give any compilation error or run properly..plz tell me briefly whts happening with the above codes....
What is a treemap in java?
In which way does a Primitive data type is passed ?
Differentiate between a constructor and a method? Can we mark constructors final?