SQLException has a feature of chaining — identify the right code to execute the same from the following:
Answer
Correct Answer: catch(SQLException e)
{
out.println(e.getMessage());
while((e=e.getNextException())!=null)
{
out.println(e.getMessage());
}
}
Explanation:
Note: This Question is unanswered, help us to find answer for this one