We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Analyze following code using your best effort. And then give and explain its output. Yours explanation should not exceed 3-4 sentences. This assignment is based on negative marking if any unnecessary information or too much detail is provided your marks will be deducted.

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class STimerOut extends HttpServlet {

public void doGet(HttpServletRequest rq, HttpServletResponse rs)
throws ServletException, IOException {
PrintWriter out = rs.getWriter();
int t = 60;

HttpSession s = rq.getSession();


out.println(" Making Session based checkOut ");

out.println("obtain previous time out " +


s.setMaxInactiveInterval(2*t*t); // two hours
out.println("setting new time to get out " +



+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

See Your Saved Posts Timeline

Views: 2645


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

Please Discuss here about this assignment.Thanks

sir plzzzzzzzzzzzzzzzzzzzzz Please share solution.........

please share if any body have the solution

pls solution he share kr dyn

well yahan,,,,ap anisha or shahid bhai discuss ker sktay hian,,,hope it will be helpfull for both,,thanks,,fnrds

Iss pooray code say jo hoga wo bata deta hoon

Screen per 3 lines print hon gi

First line ........ Making session based


and 2nd line ....... Obtain previous timeout

aur iss kay end per purana timeout interval likha hoga

iss kay baad time out interval 2 hours per set ho jaay ga

phir 3rd line print hogi ............ Setting new time to get out

solution by shahid bhai,,,, at main page,,,,baki khud hal kain plz,,,

Iss code ka kaam sirf default Timeout ko change ker k 2 hours per set kerna hay

bhai jan Please share solution.........

Aur screen per wohi 3 lines aaen gi

thnx alot sana n shahid..............itni help kr di..its enough fr me.......

Plz help me in that assignment,,, is assignmnt ka time ni mila bnane ka, so today is last day thnks


© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service