Is there a way to use memcahce in java ?
or
Does java have equal or better caching method like memcache ?
Is there a way to use memcahce in java ?
or
Does java have equal or better caching method like memcache ?
Did you not look at the memcached website? It says right there how to use it in Java.
Maybe in your usage scenario an in-memory cache is sufficent. There are a lot caching solutions for Java, like JCS, EHCache, cache2k, OSCache.
See also memcache vs java memory for a discussion when to use memcache are a Java only approach.