1.

Which symbol should be used to separate the type of exception handler classes in a single catch block?(a) ?(b) ,(c) –(d) |The question was posed to me in a job interview.My question comes from Exception Handling topic in division Exception Handling & Static Class Members of Object Oriented Programming

Answer» RIGHT CHOICE is (d) |

The explanation is: A pipe symbol can be used to separate different type of EXCEPTIONS. The exceptions should always be given in proper sequence to ensure that no code remains unreachable. If not done properly the code might NEVER be used in a program.


Discussion

No Comment Found

Related InterviewSolutions