Java is a programming language, and it does not have direct language constructs specifically designed to evaluate XPath expressions.
It is completely different that some classes may come bundled with a Java distribution that implements the XPath mechanism.
AFAIK, XPath-engine XPath 1.0.
, Java, Saxon, . , , PsychoPath.