On refreshing the page for second time or hitting the link after first execution brings the same object instance output. I couldn't see the method executing for next time and bring new output value. It brings the old value itself
I am doing some database query execution in this method.
When I print the execution time changes for first 2 refresh of page and after tat it remains same for remaining access to that page.
I tried to print the System.currentTimeMillis()
then it too didn't get updated on every refresh it was showing the same timestamp. Why is my method not executing after 2 refreshes ?