JavaSpartans
Java J2ee Struts Hibernate Spring Interview Questions Java J2ee Struts Hibernate Spring Interview Questions
10 Results; Time:0.031 Sec; Page : 1 ; Results From 1 to 10. Results Per Page

1. Where does the user request will be re-directed after the j_security_check servlet has finshed ?

See, if you have accessed a protected page say xxx.jsp, then j_security_check came in to action and ask the user his userid and password by displaying login page. If user is successfully authenticated, xxx.jsp will be served otherwise the default login-error page which is mentioned in web.xml will be displayed.

2. How do you know the user_name and password once the j_security_check is successful ?

Once the user is successfully authenticated and authorized, the j_security_check servlet will store the user data in side the request object.
The user name will be obtained by request.getRemoteUser() method.
request.isUserInRole("ADMIN"); method can be used whether the user is in a particular role or not.
Other methods useful are : request.getUserPrincipal(); request.getAuthType();

3. What is the difference between CC and BCC fields for sending mails ?

CC and BCC stands for Carbon copy and Blind Carbon copy. Now in BCC one can not know to whom the mail is sent in CC. Mail sent in BCC can not see other contacts.
c: stands for "carbon copy." Anyone listed in the Cc: field of a message will receive a copy of that message when you send it. All other recipients of that message will be able to see that the person you designated as a Cc: recipient has received a copy of the message. The Cc: field is useful in instances when you wish to share a message with someone but are not requesting that they reply or take any direct action in response.
bcc: stands for "blind carbon copy." This is similar to the Cc: feature, except that Bcc: recipients are invisible to all of the other recipients of the message (including other Bcc: recipients). The Bcc: field is useful in instances when you don't wish to share your recipients' email addresses with everyone who receives your message.

4. How many number of lines of code you will write per a day?

It depends on the necessity

5. How much max amount of file you have uploaded until now?

Please answer this question.

6. What is mean by directory browsing ? How do you disable this feature in Tomcat ?

make the listings entry to false in tomat's web.xml file not your project web.xml.

7. What are the advantages of a framework ?

If its Struts - connection pooling, control flow,easy navigation, layout by tiles.

8. What is a Tracking Cookie ?

Please answer this question.

9. The latest processors are having multiple cores. What do you understand by that term and how it is related to multithreading ?


10. In unix and in windows, if we write file names capitals and small case are different or same ?

unix is case sensitive so they both are different.

Java J2ee Struts Hibernate Spring Interview Questions
10 Results; Time:0.031 Sec; Page : 1 ; Results From 1 to 10. Results Per Page
Menu - javaspartans.com - Java J2ee Struts Spring Hibernate Interview Questions
Hostens.com - A home for your website
Ads By Google