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
Q: 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
Q: 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
Q: 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
Q: 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
Q: Can an exception be rethrown?
asked
May 3, 2021
in
JAVA
by
Robindeniel
#exception
java
Java-questions-answers
0
votes
Q: 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
Q: 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
Q: 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
0
votes
Q: What is the return type of the hashCode() method in the Object 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
Q: What will happen if "In a C++ program a class has no name"?
asked
Jan 24, 2021
in
JAVA
by
rajeshsharma
#c
-program
constructor
java
Java-questions-answers
...