There is no such thing. You can make any program as secure or insecure as you wish. The language does not matter.
Java is mostly used by the big corporates IMO and shouldn't be confused with javascript which is used by everyone. Any system can be hacked, its the code that gets written that makes it more or less likely. What are you wanting to build?