Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: raising an exception in java eclipse, help

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default raising an exception in java eclipse, help

    Hello,

    I have an assignment and I am really stuck on it,

    1. Create a new Eclipse project.
    2. Within this project, define an InvalidAgeException:
    a. This should be a checked exception which extends from the Exception
    class


    is it something like this?

    public class InvalidAgeException extends Exception {

    how do i know its an checked exception?

    Sorry if i dont make sense,....


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: raising an exception in java eclipse, help

    Welcome to Java Programming Forums.
    Google Checked and Unchecked Exceptions and you will find hundreds of records.
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

Similar Threads

  1. Replies: 21
    Last Post: December 27th, 2013, 02:33 AM
  2. Replies: 1
    Last Post: October 20th, 2012, 12:21 PM
  3. Beginners Eclipse Tutorial. How to run first java application on Eclipse?
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 13
    Last Post: June 24th, 2011, 12:26 AM
  4. Replies: 6
    Last Post: March 25th, 2011, 03:42 PM