Are you talking about a Database Management System?

If so - yes it is possible to write on using Java. You have to use a suitable API though.
In fact Oracle (the now owners of Java) have...