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.
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 :
LikeDiscussCorrect / Improve  spring   web frameworks   dependency injection   autowired   inject   spring annotations   ioc
Q104. In Spring , Which class handles the Http requests for RESTful web services ?
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 :
LikeDiscussCorrect / 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 :
LikeDiscussCorrect / 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 ?
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 :
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 :
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 :
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 :
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 :
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 :
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 :
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 :
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 :