When throws keyword is used?


When throws keyword is used? who knows best answer for that question?

Did you try an internet search? There seem to be plenty of results for that question. This is the first one I found:

(Although given what you’ve said about your location, shouldn’t you be the one explaining it to me? :))

Hey Guys well i not know much about throws keyword but i think that throw is used when you observe error of some kind and then put that right after the introduction of class.like (public class Class throws “NullPointerException”.)Thanks!!