Results 1 to 5 of 5
  1. #1
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    160
    Rep Power
    5

    Default where to use throw and throws

    hi all,
    in an interview the interviewer asked me about the throw and throws
    where throw comes and where throws come

    in class
    or in methods

    please explain
    thanks

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,304
    Blog Entries
    7
    Rep Power
    20

    Default

    What does your text book say? All introductory books on Java explain this in great detail; there's no need to repeat all the gory details here.

    kind regards,

    Jos

  3. #3
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    160
    Rep Power
    5

    Default

    hi thanks for the quick reply
    if to read the text book then what is the use of this forum to ask
    why should i waste time to post in this forum

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,304
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by javastuden View Post
    hi thanks for the quick reply
    if to read the text book then what is the use of this forum to ask
    why should i waste time to post in this forum
    I don't know; you asked a question that can easily be looked up in any decent text book so answering it wastes time for anyone replying to it.

    kind regards,

    Jos

  5. #5
    hetulhh is offline Member
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    0

Similar Threads

  1. About throw message
    By killerf2006 in forum New To Java
    Replies: 4
    Last Post: 08-22-2010, 11:48 AM
  2. what exception to throw
    By DoolinDalton in forum New To Java
    Replies: 5
    Last Post: 02-10-2010, 03:45 PM
  3. throw exception
    By GIRISH PATEL in forum New To Java
    Replies: 4
    Last Post: 04-23-2009, 04:35 AM
  4. throw an exception
    By sfe23 in forum New To Java
    Replies: 3
    Last Post: 02-14-2009, 04:41 AM
  5. Difference between Throws and Throw
    By Poonam in forum New To Java
    Replies: 7
    Last Post: 02-06-2008, 04:52 PM

Posting Permissions

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