Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Home
JAVA
Can subclass overriding method declare an exception if parent class method doesn't throw an...
0
votes
asked
May 3, 2021
in
JAVA
by
Robindeniel
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
#subclass
overriding
java
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 3, 2021
by
Robindeniel
Yes but only unchecked exception not checked.
Related questions
0
votes
Which of the following is an immediate subclass of the Panel class?
asked
Apr 8, 2021
in
JAVA
by
SakshiSharma
java
java-questions-and-answers
java-mcq
core-java-mcq
java-multiple-choice-questions
java-questions-2021
java-interview-questions
java-advanced-questions
Java-questions-answers
0
votes
Which keyword is used to throw an exception in Java?
asked
May 4
in
JAVA
by
rahuljain1
exception
java
0
votes
What should be the execution order, if a class has a method, static block, instance block, and constructor, as shown below?
asked
Apr 8, 2021
in
JAVA
by
SakshiSharma
java
java-questions-and-answers
java-mcq
core-java-mcq
java-multiple-choice-questions
java-questions-2021
java-interview-questions
java-advanced-questions
Java-questions-answers
0
votes
What is the base class for Error and Exception?
asked
May 2, 2021
in
JAVA
by
sharadyadav1986
#error
exception
java
Java-questions-answers
0
votes
What are the important methods of Java Exception Class in Java?
asked
Feb 9, 2021
in
JAVA
by
SakshiSharma
#java-exception-class
exception-class-java
java
Java-questions-answers
0
votes
Can an exception be rethrown?
asked
May 3, 2021
in
JAVA
by
Robindeniel
#exception
java
Java-questions-answers
0
votes
Mockito can throw an exception using which of the following?
asked
Feb 12, 2020
in
JAVA
by
rahuljain1
#mockito-exception
Java-questions-answers
0
votes
Which keyword is used to indicate that a method can throw an exception?
asked
May 4
in
JAVA
by
rahuljain1
method
can
throw-exception
0
votes
How many types of exception can occur in a Java program?
asked
May 2, 2021
in
JAVA
by
sharadyadav1986
#exception
java
Java-questions-answers
0
votes
Which method of the Class.class is used to determine the name of a class represented by the class object as a String?
asked
Apr 8, 2021
in
JAVA
by
SakshiSharma
java
java-questions-and-answers
java-mcq
core-java-mcq
java-multiple-choice-questions
java-questions-2021
java-interview-questions
java-advanced-questions
Java-questions-answers
...