Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6011223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:13:45+00:00 2026-05-23T02:13:45+00:00

package javaapplication16; class ExceptionoftheGods extends Exception { double b; ExceptionoftheGods (String msg){ } }

  • 0
package javaapplication16;

class ExceptionoftheGods extends Exception {

    double b;

    ExceptionoftheGods (String msg){
    }

}

class mak {

    static void compute(int a) throws ExceptionoftheGods {
        System.out.println("Called Compute(" + a + ")");
        if(a > 7) {
            throw new ExceptionoftheGods("Dog");
        }
        System.out.println("Normal Exit");
    }    


    public static void main(String[] args) {
        try {
            compute(1);
            compute(9);
        } catch(ExceptionoftheGods e) {
            System.out.println(" Caught " + e);
        }
    }

}

OUTPUT

run:
Called Compute(1)
Normal Exit
Called Compute(9)
 Caught javaapplication16.ExceptionoftheGods
BUILD SUCCESSFUL (total time: 0 seconds)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:13:45+00:00Added an answer on May 23, 2026 at 2:13 am
    ExceptionoftheGods(String msg) {
        super(msg); // missing
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

package javaapplication8; public class Main { public static void main(String[] args) { int[] list1
package testing.project; public class PalindromeThreeDigits { public static void main(String[] args) { int value
package pack; public class sample{ public static void main(String input[]) { NumberFormat numberFormat =
package org.study.algos; public class Study { public static void main(String[] args) { A a
package com.test01; public class test01 { public static void main(String[] args) { System.out.println(hi); }
package pkg_1; public class ExpOnWaitMethod extends Thread { static Double x = new Double(20);
package classes.events { import flash.events.Event; public class ASSEvent extends Event { public static const
package com.em.progressb; public class progressb extends Activity implements OnClickListener { ProgressDialog dialog; int increment;
package abc; class DependencyDataCollection { private int sNo; private String sessionID; private int noOfDependency;
package samples.flexstore { import flash.events.Event; public class ProductThumbEvent extends Event { public static const

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.