SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2013
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    When throws keyword is used?

    Hi,

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

  2. #2
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    5,383
    Mentioned
    218 Post(s)
    Tagged
    5 Thread(s)
    Did you try an internet search? There seem to be plenty of results for that question. This is the first one I found:

    http://javarevisited.blogspot.co.uk/...throws-in.html

    (Although given what you've said about your location, shouldn't you be the one explaining it to me? )
    Don't be arrogant. Be kind to a koala that thinks it's a bear.

  3. #3
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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!!


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •