Results 1 to 3 of 3
  1. #1
    kailash is offline Member
    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0

    Default catching exceptions (hierarchy)

    If we use throws Exception, which exception will be caught first ie runtime or compiletime exceptions.

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    )) It is nice question. Compiletime exception this is exception, when you compiling code. as so Runtime - this is exception will throws in time running program.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,006
    Rep Power
    20

    Default

    The question makes no sense, to be honest.
    try/catch blocks in your code have nothing to do with any compilation errors during the compilation of that code.

Similar Threads

  1. Help with Catching Exceptions
    By javaman1 in forum New To Java
    Replies: 4
    Last Post: 09-11-2010, 02:06 AM
  2. Hierarchy in Project
    By efozdel in forum New To Java
    Replies: 4
    Last Post: 07-23-2010, 09:49 AM
  3. Replies: 6
    Last Post: 07-04-2010, 04:01 PM
  4. Client catching Web Service User Exceptions [Java 6.0.17]
    By Shaitan00 in forum Advanced Java
    Replies: 4
    Last Post: 11-22-2009, 01:09 AM
  5. catching uncaught exceptions using Spring / WebApp
    By taille50 in forum Web Frameworks
    Replies: 1
    Last Post: 10-18-2009, 01:14 AM

Posting Permissions

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