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. RI or Reference Implementation is a sample implementation provided for the API's / Specs, usually by their developers. This is usually a part of API documentation.
Help us improve. Please let us know the company, where you were asked this question :
LikeDiscussCorrect / Improve  reference implementation   help docs   helpdocs   api   apis   api specs   documentation  rare
Q2555. Develop a simple paint like program using applets ?
Ans. Follow the below steps:
1- import the required class and packages.
2- create a class Drawtest for creating an applet.
3- initialize panles and controls int the init() method.
4- Define the destroy() method to destroy the same.
5- create an instance for draw test class and call the init(0 and start() methods in the main method)).
6- Add a new frame to the applet window and resize it to 300x300.
7- Declare a method get applet infor to display the applet information.
8- Declare two constants LINES , POINTS which are going to be the modes.
9- Define the paint method and perfoem the required operations.
10- Display the result according to the mode selected.
Help us improve. Please let us know the company, where you were asked this question :
Q2556. Explain Application / Server architecture being used in your project ?
or
Explain your project architecture ?
Ans. We are using cluster of Web servers and Application servers. Load Balancer is used to manage the load between them. Down the layer we have middleware server and then DB server to access database.
Help us improve. Please let us know the company, where you were asked this question :
Q2557. 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
Q2558. 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
Q2559. What is GregorianCalendar class ?
Ans. This class provides support for traditional Western calendars.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Parameters are the variables that the method is expected to receive along with the method call. Arguments are the values which are passed on while calling the methods.
Help us improve. Please let us know the company, where you were asked this question :
Ans. It is a Design Pattern that facilitates loose coupling by sending the dependency information ( object references of dependent object ) while building the state of the object. Objects are designed in a manner where they receive instances of the objects from other pieces of code, instead of constructing them internally and hence provide better flexibility.
Help us improve. Please let us know the company, where you were asked this question :
Ans. TDD is a development process that involves short iterations: first an automated test case is written. Then, the code is written to pass that test, and finally one refactors the new code to acceptable standards.
Help us improve. Please let us know the company, where you were asked this question :
Ans. The goal of a synchronised block is to achieve mutual exclusion i.e at one time, the segment of the code should be executed by single thread only and hence the lock needs to be retrieved before executing the segment and then released.
Help us improve. Please let us know the company, where you were asked this question :