Throw:it is used to raise exception explicitly:they are not same.:Throw:it is used to raise exception explicitly:Throw:it is used to raise exception explicitly:throw: it is used to generate an exception.:throws clause is used when the programmer does not want to handle the exception and throw it out side of method.:throw is used for the User defined Exception, but we need to handle it.:throw is user defined exception but nee to handle it:well. throws clause is used to specify that the caller of that method should handle the exception if one is raised.:Throws:-when programmer does&
Category:Core Java Interview Questions
No comments:
Post a Comment