How is Java more Secured than Other Languages?
https://www.computersprofessor.com/2016/05/how-is-java-more-secured-than-other.html?m=0
Everything that you download form
internet, you are risking a viral infection. Prior to Java, most users did not
download executable programs frequently, and those who did scan them for virus
prior to execution. Even so, most users still worried about the possibility of
infecting their Systems with a virus. In addition to viruses, another type of
malicious program exists that must be guarded against. This type of program can
gather private information, such as credit card numbers, bank account balances,
and passwords, by searching the contents of computers local file System. Java
answer both of these concerns by providing a “firewall” between a networked
application and computer.
When
you use a Java-compatible web browser, you can safely download Java applets
without fear of viral infection of malicious intent. Java achieves this
protection by confining a Java program to the Java execution environment and
not allowing it access to other parts of the computer. The ability to download
applets with confidence that no harm will be done and that no security will
breached is considered by many to be the single most important aspect of Java