1.

Which of these methods are used to find a URL from the cache of httpd?(a) findfromCache()(b) findFromCache()(c) serveFromCache()(d) getFromCache()I have been asked this question in an online interview.My doubt stems from Networking in chapter Serialization & Networking of Java

Answer»

The correct option is (c) serveFromCache()

To explain I would say: serveFromCatche() is a boolean METHOD that ATTEMPTS to FIND a particular URL in the cache. If it is successful then the content of that cache entry are written to the client, OTHERWISE it RETURNS false.



Discussion

No Comment Found

Related InterviewSolutions