I am attending java exp interviews eventhough i am fresher.In that interviews most of the persons are asking WHAT KIND OF EXCEPTION YOU HAVE FACED IN YOUR PROJECT....SO,Please Tell Me How To Answer This Question Perfectly..(Please Share Your Experiences In This Kind Of Situation In Your Projects Especially in Web-based Projects)
First you should be on the same page as the interviewer and know what specifically he/she is talking out, e.g. project, exception, etc. Are they are talking about Java program "exceptions" during development or something other type of exception related to a project?
There is no "perfect" answer. The answer depends on your experience. If you have experience coding and have never had to deal with a Java Exception in code, then your answer should convey this. If you have never worked on a project, then you answer should be very easy, "You never had to deal with an exception, you have not worked on any project."
For experienced interviewers, it is very easy to tell when an individual is lying or making up things in their responses to queries. If you keep encountering questions about exceptions, then you should study them in detail. You can always state that you have never had to deal with them in programming, but understand what they are and the various ways to deal with them.
Joe Harry wrote:Or tell them that you have programmed everything in such a way that you never had to come across any exception.
"I haven't worked on any projects" is more believable. And even then you can tell them about exceptions encountered in learning Java, practicing on your own, etc. I find it hard to believe that anyone programming Java has *never* faced a Java exception.
IMO, this question is probably not the actual question. It is likely just a way to start the conversation to something that the candidate has faced. A generic open ended question to get the candidate going to something that he/she should know, and then to be followed up by actual questions.
This means (and again, it is just opinion) that making up stuff is not a good idea, as it will be follow up with detail questions about what the candidate did during the project. It also means that the "I don't get exceptions" or "I am a fresher and have no project" response is not good here either.
If you're applying for a job as a Java programmer then you most likely know how to program in Java, so you must have written some program, where you've most likely have had to handle exceptions (because in almost any Java program that does more than print "Hello World!" you'll have to deal with exceptions).
Talk about your own experience, no matter how small. Even if you're a fresher you must have written some Java code, even if it wasn't in a project setting.