“What is the difference between Throw and Throws in Java Exception Handling?” You look at the person asking you that question and think, I should know this! But at that moment, you can’t quite remember, and then kick yourself mentally for not preparing for your interview.
Good thing that’s just a fake scenario and you’re definitely going to be able to answer that question and more when the time comes!
The typical company hiring a Java programmer is looking for someone who can program well beyond the level taught in an introductory Java class. Interviewers ask questions that aren’t necessarily stumpers, but are meant to elicit a candidate’s deeper knowledge of the subject matter. While I would suggest you to learn java throughly before facing an interview.