1. The first question was about Java access modifiers. 2. The second question was about which class is used in Spring Security for configuring authentication with a DataBase. The options they give you were JdbcSecurityImpl, DaoSecurityImpl, some others and ‘None’. 3. The third question was a bizarre question about ServletException with options than don’t make any sense
Anonymous
1. I got angry a little because I couldn’t read the first question because it was a bad photo of a photocopy of a notebook paper. The question was an easy question about Java access modifiers. But the whole time I was thinking couldn’t they just type the question or type it in word and get a screen shoot. I think that instead of testing Java they were testing my glasses and my patience. 2. Well second question, I just remembered that the interface was UserDetailsService and one of the implementations started with JDBC and end with Impl so I choose the JDBcSecurityImpl, however as you can google it was JDBCDaoImpl. Even I myself have written the security code for multiple applications using spring, shiro, etc. I can recall from memory the names of the classes. Well, I think companies nowadays expect you to remember things from memory in interviews ☹. 3. Even do years ago I worked with servlets, jsp, struts, and I wrote the exception handling, logging, filters and configurations of error pages, neither the question nor the answers options make any sense, I don’t know if it was written in bad English or designed to produce a conversation, but the interviewer didn’t want to talk or interact about anything. If you worked at the field, you know that a ServletException shouldn’t ever be showed to the client, you must use try/catch and then wrap the exception depending on each case on User exceptions that can be processed further logged and transformed in exception filters but then the return the appropriate error code 400, 404, 401, 403, 201, 50x, 400x and if the exception is produced in a JSP page map to an error page configured that on web.xml, if is an HTTP rest call is enough to return the HTTPCode and sometimes a json body with error information. Form the client perspective only retry 408, 502, 503 and 504, but there was very fuzzy who was the client So i guess i failed the test, but I disliked the interview questions most companies ask you at least 5 and you are able to discuss them or give you an online questionaire of at least 10 questions. Or test you in leetcode (even do i hate it and prefer codelity or codesignal).
Check out your Company Bowl for anonymous work chats.