Results 1 to 2 of 2
  1. #1
    emily.m is offline Member
    Join Date
    Feb 2012
    Posts
    9
    Rep Power
    0

    Default why sometimes compile sometime would not compile?

    Hi
    Why a program without having NumberFormatException in catch could compile even if it has run time problem , but a program without catch(MalformedURLException e) and catch(IOException e) would not compile?
    Can anyone explain this to me?
    Thanks in advance

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: why sometimes compile sometime would not compile?

    Difference is checked versus unchecked exceptions. Google these terms, and the following touches on the subject:
    What Is an Exception? (The Java™ Tutorials > Essential Classes > Exceptions)

Similar Threads

  1. why i can not compile? please help
    By zypchun in forum New To Java
    Replies: 4
    Last Post: 09-29-2013, 10:11 PM
  2. why won't this compile
    By joet1984 in forum Advanced Java
    Replies: 4
    Last Post: 08-31-2011, 09:50 AM
  3. What to do here(cant compile)?
    By Pojahn_M in forum New To Java
    Replies: 8
    Last Post: 08-06-2011, 01:55 AM
  4. would this compile?
    By stringkilla in forum New To Java
    Replies: 10
    Last Post: 10-24-2010, 03:27 PM
  5. Not able to compile
    By bugger in forum New To Java
    Replies: 2
    Last Post: 01-09-2008, 10:13 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
  •