Yesterday i gave an interview and faced A QUESTION which i cant answer. How can we Compare two PDF files using JSP?
Please help

The answer is more complex as you would have to more about the PDF and what sort of comparison they looking for. PDF can be representation of text or image. Therefore you could read the document and then compare documents by comparing leafs/children (PDF is essentially xml document), or you could go for simple document byte arrays comparison. Either way final solution would be dependent on what it is exactly you looking for.

PS: I would either leave or I would ask examiner to explain me why this should be done in JSP

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.