1.Implement the information persistence across servlet destroy or servlet container start/stop. Write a servlet such that when it is stopped (either by container shutdown or servlet stop), it should write the current session start time and its duration in a persistent file on the disk. On restart of container/servlet, it should display the following information of last servlet instance: a) start time, b) duration. On refresh of the servlet, it should display a random number (lucky number) between 5 and 25.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.