Java EE - Interview Questions and Answers for 'Java EE' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Java EE - Interview Questions and Answers for 'Java EE' - 58 question(s) found - Order By Rating

next 30
 Q1. Explain Servlet configJava EE
 This question was recently asked at 'Oracle financial services'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     servlet  servlet config     Asked in 1 Companies


 Q2. How can we drop cookies through back end code ? Does it transfer the cookie file to the client ?Java EE
 This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q3. Is it front end code or the back end code , that drops the cookies ?Java EE
 This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q4. Explain servlet lifecycleJava EE
Ans. Init -> service -> destroy.

Out of these, init and destroy are called once per servlet whereas service is called every time when a request is made to the servlet.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     servlet     Asked in 6 Companies


 Q5. What is the need for filters in Java Servlets ?Java EE
 This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q6. Is HttpServlet an abstract class ?Java EE
Ans. Yes

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q7. What is an applet ?Java EE
 This question was recently asked at 'American International Group (AIG)'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     applet     Asked in 1 Companies      basic        rare


 Q8. What is the difference between Java and J2ee ?Java EE
 This question was recently asked at 'Sunovaa Tech'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java vs j2ee  java  j2ee     Asked in 1 Companies


 Q9. What is a session bean ?Java EE
 This question was recently asked at 'BirlaSoft'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     session bean   java bean     Asked in 1 Companies


 Q10. What are some uses of interceptors ?Java EE
Ans. Authentication / Authorization
URL forwarding
Auditing / Logging
Localization

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     interceptors  interceptor design pattern


 Q11. Can we deploy an application to server using a jar file ?Java EE
Ans. Conventionally we need a WAR file to be deployed to server. Though with Spring Boot we can even deploy using jar.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q12. Which component of MVC you like to work on ?Java EE
 This question was recently asked at 'CapTech'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q13. Difference between import and include directive in jspJava EE
 This question was recently asked at 'ADP'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     JSP  import and include directive in jsp     Asked in 1 Companies


 Q14. Difference between Include Directive and include action in jspJava EE
Ans. Include directive includes the file at translation time (the phase of JSP life cycle where the JSP gets converted into the equivalent servlet) whereas the include action includes the file at runtime.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     JSP  include directive  include action     Asked in 1 Companies


 Q15. Which type of EJB can use bean pooling?Java EE
Ans. Stateless Session Beans

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     EJB  java beans     Asked in 1 Companies


 Q16. Ho do you share / transfer variables between JSP pages ?Java EE
 This question was recently asked at 'UC Davis'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     jsp     Asked in 1 Companies


 Q17. What does the Web module contains ?Java EE
Ans. JSP files, media files and deployment descriptor ( web.xml )

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     j2ee  j2ee web module


 Q18. What are the different J2EE modules ?Java EE
Ans. 1. Application Client Module
2. Web Module
3. EJB
4. Resource Adapter

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     j2ee  j2ee modules


 Q19. Have you heard of SiteMesh ?Java EE
Ans. Sitemesh is a web page layout and decoration framework by OpenSymphony. SiteMeshFilter can intercept the requests and then build UI components (based on configuration) then renders the final page.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     sitemesh


 Q20. What is the difference between filter and filter-mappings xml tag within deployment descriptor ?Java EE
Ans. filter tag speficies the filter name and respective class for handling filter action whereas filter mapping maps the filter to the url patterns ( specifying the url that needs to be intercepted )

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     deployment descriptor  web.xml  filters  filter mapping


 Q21. What is a Servlet Filter ?Java EE
Ans. It's an object that can intercept http request and response and hence we can take appropriate action on those requests.

There are different types of filters based on Specifications like

Authentication
Logging
Encryption
Tokenizing

etc

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     servlets  servlet filters     Asked in 3 Companies      basic        frequent


 Q22. Can we convert a numeric IP address to a web host name ?Java EE
Ans. Yes, using InetAddress.getByName("<IP Address>").getHostName();

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     ip address to hostname  INETAddress      intermediate


 Q23. What are different ways for Servlet authentication ?Java EE
Ans. HTTP Basic Authentication
HTTP Digest Authentication
HTTPS Authentication
Form Based Login

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q24. What is the difference between ServletConfig and ServletContext ?Java EE
Ans. http://www.java4s.com/java-servlet-tutorials/difference-between-servletconfig-and-servletcontext-in-java/

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     ServletConfig  ServletContext     Asked in 1 Companies


 Q25. Explain some of the http status codes you know ?Java EE
Ans. 500 is Internal Server Error

404 is resource not found

400 is Bad Request

403 is Forbidden

401 is Unauthorized

200 is OK

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     http  http status codes     Asked in 2 Companies        frequent


 Q26. What is the difference between http and https ?Java EE
Ans. https encrypts the data using SSL whereas http sends it as plain text, So https is secure protocol whereas http is not.

Moreover https connects on port 443, while HTTP is on port 80

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     http  https  web protocols     Asked in 1 Companies        basic


 Q27. What is a web service ?Java EE
Ans. A Web service is a service offered by one system to another, for communication over web through http. XML are JSON are usually used for sending across information from one system to another.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     web service     Asked in 2 Companies      basic        frequent


 Q28. What does the web status code 404,500 and 200 mean ?Java EE
Ans. 404 means the resource is not found on the server.The resource might not be deployed correctly.

500 means internal server error which means that resource was located but then it resulted in some exception or error.

200 means Ok.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     web status code     Asked in 1 Companies

Try 1 Question(s) Test


 Q29. What is an IP address ?Java EE
Ans. An Internet Protocol address is a numerical label assigned to each device participating in a computer network.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     ip address     Asked in 2 Companies      basic        frequent


 Q30. What do you know about JQuery ?Java EE
Ans. jQuery is a cross platform JavaScript library designed to simplify the client-side scripting of HTML. JQuery is the most popular JavaScript library.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     jquery     Asked in 1 Companies


next 30

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: