Interview Questions and Answers for 'Web' | 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

   



Interview Questions and Answers - Order By Newest

   next 30
 Q101. Difference between TCP and UDP ?Networking
Ans. http://www.cyberciti.biz/faq/key-differences-between-tcp-and-udp-protocols/

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

   Like         Discuss         Correct / Improve     java   network programming   architecture   Cloud Computing  Google Cloud Computing (GCP)  Amazon Web Services (AWS)     Asked in 3 Companies


 Q102. Name some Java REST services frameworks ?Rest
Ans. Jersey , Restlet , RestX, Spring , RestEasy ,Restfulie, Play Framework

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

   Like         Discuss         Correct / Improve     java   rest   web services   frameworks


 Q103. What is the difference betweeen @Inject and @Autowired ?Spring
Ans. @Autowired and @Inject are similar in terms of functionality they achieve. @Inject is part of a new Java technology called CDI that defines a standard for dependency injection whereas @Autowired is a Spring specific annotation for dependency injection.

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

   Like         Discuss         Correct / Improve     spring   web frameworks   dependency injection   autowired   inject   spring annotations   ioc


 Q104. In Spring , Which class handles the Http requests for RESTful web services ?

a. Service
b. Model
c. Controller
d. Util
Spring
Ans. Controller

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

   Like         Discuss         Correct / Improve     spring frmaework   spring mvc   rest   webservices


 Q105. Are Servlet classes Thread Safe ?Java EE
Ans. No

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

   Like         Discuss         Correct / Improve     servlets   j2ee    web


 Q106. How do you monitor the server resources if inadvertently high traffic is reported ?
Ans. We use SAR command for that purpose. We also have GUI system monitoring tool to keep real time check of requests, load and memory usage.

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

   Like         Discuss         Correct / Improve     server monitoring   production support   servers   website traffic   system monitoring   sar   application support


 Q107. Have you ever faced any problem due to caching?
Ans. Yes , sometime we receive issues related to outdated pages being rendered to the user. In those cases we clear the cache and then try to investigate the reason for that. Sometime the issue is due to comparatively high refresh interval. In those cases we reduce the cache refresh interval.

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

   Like         Discuss         Correct / Improve     caching   cache   java   web applications   production support   application support


 Q108. If you are given a choice to have a functionality shared either through dependency or through a Web service, which one will you choose ?Solution
Ans. Web Service promotes looser coupling but with comes with coding and performance overheads. Jars provide better performance and may be lesser coding but are problematic with update distribution. If the situation doesn't require frequent dependency updates and if it's only read operation of persistence, Having dependencies should be a better choice , otherwise web service.

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

   Like         Discuss         Correct / Improve     Design  Web Service vs Jar


 Q109. Can we send a request body with the Get Request ? If not, What is the alternate to pass message to the Get Request ?Web Service
Ans. Request Body in case of Get Request has no meaning and hence it's not parsed when the request is received. Alternatively Request Parameters are passed as either Path Params or Query Params.

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

   Like         Discuss         Correct / Improve     rest  web services  http  http methods  get request


 Q110. Is it Necessary to send a POST request with the Payload or a body ?Web Service
Ans. No, we can also send an empty body with the POST Request.

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

   Like         Discuss         Correct / Improve     Get Request   Rest        rare


 Q111. What are the different ways in which information can be sent to server in web service call ?Web Service
Ans. 1. As Request Param
2. As Path Param
3. Part of Payload / Body in case of PUT and POST Request

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

   Like         Discuss         Correct / Improve     web service   rest      basic        frequent


 Q112. What is the difference between Controller and Task Command ?IBM WCS
Ans. Controller Command is the command that gets called upon a request, just like We have actions in struts and controller in Spring. Task is a step in this bigger process. Task command are the commands that perform specific task for a controller command, like service classes in other frameworks. In order to complete the request, a controller command may invoke multiple task commands.

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

   Like         Discuss         Correct / Improve     IBM Websphere Commerce   IBM WCS  WCS commands


 Q113. What is the difference between URI, URL and URN ?Java EE
Ans. URI stands for Uniform Resource Indicator
URL stands for Uniform Resource Locator
URN stands for Uniform Resource Name

URI = URL + URN

For ex - http://javasearch.buggybread.com/InterviewQuestions/questionSearch.php?keyword=url

This is URI. The string from start till .php is URL whereas keyword=url is URN.

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

   Like         Discuss         Correct / Improve     url  urn  uri  web address  internet address     Asked in 1 Companies


 Q114. 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


 Q115. What is difference between Product and Item ?IBM WCS
Ans. Item is a sale-able merchandise where as Product is a group of sale-able merchandise which share certain attributes. For example - Cell phone is a product whereas Samsung Galaxy S2 - White is an item.

Quantity is always attached to SKU ( Stock keeping unit ) or items. Product quantity has no relevance in terms of identify the current stock or reorder condition.

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

   Like         Discuss         Correct / Improve     IBM Websphere Commerce   IBM Wcs


 Q116. 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


 Q117. 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


 Q118. How to create stateful Rest Services ?Rest
Ans. There is no direct way to make stateful REST service but when first time request send to server, generate the token on server and send back to client. When every time new request is send the token is send to identify the request is coming from same client.

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

   Like         Discuss         Correct / Improve     Rest  Web Services     Asked in 1 Companies


 Q119. Explain your experience with Java, spring and web services?General
Ans. Have worked on Java 7 and Java 8, In Java 8 , Worked with streams , lambda expression and default methods.

Have worked on both Spring Mvc and Spring Boot, using Spring dependency injection, Rest services , AOP , JDBC and Hibernate integration.

Have worked on Rest services using Spring and Spring Boot. Have worked on SOAP web services too.

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

   Like         Discuss         Correct / Improve     spring  web services     Asked in 1 Companies


 Q120. Is there any relationship between Web.xml and Spring.xml ?Spring
Ans. No, there is no relationship between web.xml and spring.xml but you have to configure spring.xml in web.xml in order initialize beans when application starts up

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

   Like         Discuss         Correct / Improve     spring  web.xml  spring.xml  deployment descriptor     Asked in 1 Companies


 Q121. Which Web and Application server is being used by your application ?Server
Ans. We are using Apache 2.3 and Tomcat 5.6

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

   Like         Discuss         Correct / Improve     web server  application server  server      Basic        frequent


 Q122. 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


 Q123. 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


 Q124. How Access control Policies are implemented in WCS ?IBM WCS
Ans. There are three elements i.e Users ( Who want access ) , Actions ( What kind of Access ) and Resources ( Whose Access ). The relationship between resource and user is store in ACRELATION table and ACRESREL associate a resource and relationship.

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

   Like         Discuss         Correct / Improve     IBM Websphere Commerce


 Q125. What are the tables used for Access control ?IBM WCS
Ans. ACPOLICY , ACPOLDESC , ACACTION , ACRELATION , ACRESREL , ACRESGRP

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

   Like         Discuss         Correct / Improve     IBM Websphere Commerce


 Q126. Who manages the Access control policies and How ?IBM WCS
Ans. Site Administrator and through Org Admin Console.

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

   Like         Discuss         Correct / Improve     IBM Websphere Commerce


 Q127. What are the design patterns used in WCS ?IBM WCS
Ans. MVC , Display Design and Command.

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

   Like         Discuss         Correct / Improve     IBM Websphere Commerce


 Q128. What is reload interval and where it is defined ?IBM WCS
Ans. reload interval or jsp caching interval is a parameter that indicates how frequently a JSP should be recompiled.

It is defined within

Stores.warWEB-INFibm-web-ext.xmi

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

   Like         Discuss         Correct / Improve     IBM Websphere Commerce


 Q129. What information is stored in CACHEIVL table and How does this help in caching ? IBM WCS
Ans. This table records the changes to product or category information in the database. This is referred by WCS for invalidating dynacache.

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

   Like         Discuss         Correct / Improve     IBM Websphere Commerce


 Q130. What are the different types of Auctions in WCS ?IBM WCS
Ans. open cry, sealed bid, and dutch

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

   Like         Discuss         Correct / Improve     IBM Websphere Commerce  Auctions


previous 30   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: