Java in Adaptive Server allows you to:
Invoke Java methods in the database
Store Java classes as datatypes
Store and query XML in the database