Core java - Interview Questions and Answers for 'Headstrong' | Search Interview Question - javasearch.buggybread.com
Questions
Search
List By Company
List By Topic
Legacy
Tests
Repository
DashBoard
Java
Java 8
Java 7
Java Abbreviations
OCJP / SCJP
Class List
New in Java 8
Java Exceptions
Spring Exceptions
Java Enums
Java 8 Lambda
Java 8 java.time
Big Data
Best Of Java
Discussion
Search
Subscribe
Search Interview Questions
More than 3000 questions in repository.
There are more than 900 unanswered questions.
Click here
and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company
Label / Company / Text
Search
Submit Question
Core java - Interview Questions and Answers for 'Headstrong' - 1 question(s) found
- Order By Newest
Q1.
What are the different ways to handle an exception ?
Core Java
Ans. 1. Wrap the desired code in try block followed by a catch / finally to catch the exception
2. Declare the throws clause with exceptions that the code is expected to throw as an indication to the calling method to take care of it.
Help us improve. Please let us know the company, where you were asked this question
:
Like
Discuss
Correct / Improve
 exception handling
Asked in 4 Companies
Correction
Duplicate of Another Question
Company where this question was Asked
Suggestion
Try 1 Question(s) Test
In Case a method is declared to throw an exception , We can only use a call to that method if ...
We use the call within try block and catch the exception
We declare that the method is expected to throw the exception using throws
Both 1 and 2
Either 1 or 2
Related Questions
How compiler handles the exceptions in overriding ?
What things should be kept in mind while creating your own exceptions in Java?
Difference between Checked and Unchecked exceptions ?
Explain java.lang.OutOfMemoryError ?
What will happen if we don't have termination statement in recursion ?
Name few Java Exceptions ?
How can we make sure that a code segment gets executed even in case of uncatched exceptions ?
Is it necessary that each try block to be followed by catch block ?
What is exception propogation ?
Can we have try and catch blocks within finally ?
Help us and Others Improve. Please let us know the questions asked in any of your previous interview.
Any input from you will be highly appreciated and It will unlock the application for 10 more requests.
Company Name:
Questions Asked: