1.

Which of these method of httpd class is used to write UrlCacheEntry object into local disk?(a) writeDiskCache()(b) writetoDisk()(c) writeCache()(d) writeDiskEntry()This question was addressed to me during an internship interview.The doubt is from Networking topic in division Serialization & Networking of Java

Answer»

Right answer is (a) writeDiskCache()

For explanation: The writeDiskCache() method takes an UrlCacheEntry object and writes it PERSISTENTLY into the local DISK. It constructs directory NAMES out of URL, making SURE to replace the slash(/) characters with system dependent seperatorChar.



Discussion

No Comment Found

Related InterviewSolutions