If I undestand:
--- knowing Java you can develop Applications that interacts with Databases. I am not sure knowing Java by itself if you can develop Dynamic Web Applications that interacts with Databases and fetch the results.( I mean probably you will have to learn other languages too, such as HTML, JSS,etc..)
If that's the case it sounds to me that knowing Java Scripts is more useful that knowing Java, Web Apps are much more in demand.
Any Expert to shade some lights on that?