This article is part of the [[XQuery|XQuery Portal]].
It demonstrates two ways to invoke Java code from XQuery, and (since {{Version|7.2.1}}) an extension to make Java code aware of the current context.
The Java Binding feature is an extensibility mechanism which enables developers
=Module Imports=
{{Mark|Introduced with Version 7.2.1:}}
Java code can also be integrated by ''importing'' classes as modules.
=Context-Awareness=
{{Mark|Introduced with Version 7.2.1:}}
Java classes can be coupled more closely to the BaseX core library.