1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
natka813 [3]
3 years ago
13

Create the following new exceptions: PokemonException, which extends the Exception class. It must have a no-parameter constructo

r, which just calls the corresponding superclass constructor KantoPokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor JohtoPokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor Hoenn PokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor SinnohPokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor Unova PokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor Kalos PokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor AlolaPokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor GalarPokemonException, which extends PokemonException. It must have a no-parameter constructor, which just calls the no-parameter superclass constructor
Computers and Technology
1 answer:
slamgirl [31]3 years ago
6 0

Answer:

public class PokemonException extends Exception {

public PokemonException() {

super();

}

}

public class KantoPokemonException extends PokemonException {

public KantoPokemonException() {

super();

}

}

public class JohtoPokemonException extends PokemonException {

public JohtoPokemonException() {

super();

}

}

public class HoennPokemonException extends PokemonException {

public HoennPokemonException() {

super();

}

}

public class SinnohPokemonException extends PokemonException {

public SinnohPokemonException() {

super();

}

}

public class UnovaPokemonException extends PokemonException {

public UnovaPokemonException() {

super();

}

}

public class KalosPokemonException extends PokemonException {

public KalosPokemonException() {

super();

}

}

public class AlolaPokemonException extends PokemonException {

public AlolaPokemonException() {

super();

}

}

public class GalarPokemonException extends PokemonException {

public GalarPokemonException() {

super();

}

}

Explanation:

  • A separate Java file needs to be created for each of the following exception.
  • Inside the constructor, call the super() method to inherit all the properties of a parent class.
You might be interested in
Question #4
zzz [600]

Answer: You could use the path (2)

Explanation:

It is not necessary for the file to be in the same folder

You can use the relative path to a sub-folder

Backward Slashes are not necessary for windows. (you could also use forward slashes)

The full path is not necessary if the file is in the same folder.

6 0
3 years ago
A major weakness of a lot of file processing systems is that ____.
Gnesinka [82]

They are several weaknesses or disadvantages of file processing systems but the major weakness is data redundancy and inconsistency. By data redundancy, I mean duplication of data. There are no better methods to validate insertion of duplicate data in file systems. Data redundancy can also increase the chance for errors.






7 0
4 years ago
1)A popular and useful tool for strategic planning is SWOT analysis. SWOT stands for
Blizzard [7]

1. strengths, weakness, opportunities, threats

2. protecting the privacy of others

3. this behavior can create divisions on the team.

4. creating a schedule for workflow

7 0
3 years ago
Sketch the frequency response?
natita [175]
Well... it looks too complicated for anyone in the whole universe. :\
5 0
4 years ago
What are the two methods of creating a folder​
son4ous [18]

Answer:

1. right click empty space, go to New, and click New Folder

2. press Ctrl + Shift + N

Explanation:

5 0
2 years ago
Other questions:
  • The primary role of the firewall is to: block unauthorized access to and from the system. quarantine any malware until it can be
    11·1 answer
  • Why would a designer choose to use an isometric sketch rather than a perspective sketch to share their idea with a design team m
    14·1 answer
  • Hey I don’t have a question I’m just testing something on this app
    6·2 answers
  • PLEASE HELP
    8·2 answers
  • Which of the following is not a SQL*Loader file?
    11·1 answer
  • "In a web app, where is data usually stored? A. Mobile network B. Application storage C. Local computer D. Cloud storage"
    14·1 answer
  • Which of these personal protective equipment items prevents injury from falling objects ?
    15·1 answer
  • Learning how to use word processing and spreadsheets, and creating presentations are all considered __________ computer skills.
    15·2 answers
  • Read the steps in the process of making a video.
    5·2 answers
  • Python code for converting between minutes to seconds. For example 5 minutes= 300 seconds. please help me with this
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!