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
Which keyword is used to indicate that a method can throw an exception?
Home
JAVA
Which keyword is used to indicate that a method can throw an exception?
0
votes
asked
May 4
in
JAVA
by
rahuljain1
Which keyword is used to indicate that a method can throw an exception?
a) catch
b) throw
c) throws
d) try
method
can
throw-exception
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 4
by
rahuljain1
Answer: c) throws
Explanation: The “throws” keyword is used to indicate that a method can throw an exception.
Related questions
0
votes
Q: Which keyword is used to throw an exception in Java?
asked
May 4
in
JAVA
by
rahuljain1
exception
java
+1
vote
Q: What is git cherry-pick? What are the scenarios in which git cherry-pick can be used?
asked
May 21, 2020
in
Git
by
SakshiSharma
what
is
git
cherry-pick
are
the
scenarios
in
which
can
be
used
0
votes
Q: Which method can we use in an applet to output a string?
asked
Aug 21, 2022
in
JAVA
by
sharadyadav1986
java
method
0
votes
Q: Name the method that can be used to find the expansion of abbreviations in spaCy.
asked
Sep 28, 2022
in
NLP using Python
by
john ganales
nlp
method
spacy
0
votes
Q: Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
asked
May 3, 2021
in
JAVA
by
Robindeniel
#subclass
overriding
java
Java-questions-answers
0
votes
Q: Out of these exceptions, which one is thrown by the compareTo() method that is defined in a double wrapper?
asked
Aug 21, 2022
in
JAVA
by
sharadyadav1986
exception
java
method
0
votes
Q: Which of the following is NOT a type of method reference in Java?
asked
May 5
in
JAVA
by
sharadyadav1986
method
reference
java
0
votes
Q: Which of the following is a valid method reference in Java 8?
asked
Apr 28
in
JAVA
by
Robin
valid
method
reference
0
votes
Q: Which of the following is the correct syntax for calling a method in Java?
asked
Apr 26
in
JAVA
by
SakshiSharma
method
java
0
votes
Q: Which of the following is true about the Optional.orElse() method in Java 8?
asked
May 2
in
JAVA
by
Robin
optional
orelse
method
...