I am creating a java desktop application. 

I am using mysql database as back end. 

In my application some query was get executed more than one time, so i want to cache the query result and use it for the next time. 

For caching i try prepared statement but i don't get any positive result. 

Is any other way to **cache the query and query result set**?