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 4 of 4

Thread: Multiple Catch Blocks

  1. #1
    Junior Member
    Join Date
    Sep 2017
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Multiple Catch Blocks

    What is the correct code to create Multiple Catch Blocks in Java?

    I have tried this code from W3schools but didn't get the expected result. Please help me out.

    Thanks

    Tutorial URL:http://www.w3school.in/w3schools/jav...e-catch-blocks

  2. #2
    Member John Joe's Avatar
    Join Date
    Jun 2017
    Posts
    258
    My Mood
    Amused
    Thanks
    8
    Thanked 18 Times in 18 Posts

    Default Re: Multiple Catch Blocks

    What is not working here ?
    Whatever you are, be a good one

  3. #3
    Junior Member
    Join Date
    Sep 2017
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Multiple Catch Blocks

    Quote Originally Posted by John Joe View Post
    What is not working here ?
    I am getting compile time error while using the given code!!

  4. #4
    Member John Joe's Avatar
    Join Date
    Jun 2017
    Posts
    258
    My Mood
    Amused
    Thanks
    8
    Thanked 18 Times in 18 Posts

    Default Re: Multiple Catch Blocks

    Post your code here
    Whatever you are, be a good one

Similar Threads

  1. Stanford CS106a Assignment 2: Pyramid Blocks
    By zammtech in forum What's Wrong With My Code?
    Replies: 15
    Last Post: November 19th, 2013, 06:29 PM
  2. Representing tones visually in blocks
    By Nindustries in forum Java Theory & Questions
    Replies: 9
    Last Post: January 20th, 2013, 12:49 PM
  3. Making a method to move blocks in a grid
    By geforce in forum What's Wrong With My Code?
    Replies: 60
    Last Post: May 22nd, 2012, 07:00 AM
  4. Nested try blocks
    By Ahmed. in forum Member Introductions
    Replies: 2
    Last Post: April 30th, 2010, 08:12 AM

Tags for this Thread