I've done some work for a startup that uses Java as well as some other Java related technologies you might consider outdated. Their founder is an older guy and wrote the MVP himself. But hey - it all works and does the job quite well.
You can create an API and query databases with just about anything.