Is code injection possible in Java?

前端 未结 8 2134
谎友^
谎友^ 2021-02-04 07:17

nowadays you can read much about code injection, exploits, buffer-, stack- and heap-overflows etc. leading to inject and run code. I wonder what of this stuff is relevant for Ja

8条回答
  •  遇见更好的自我
    2021-02-04 07:33

    If it was possible, Java would already have been dead for long.

    On the other hand, SQL injections are very easy to avoid by using PreparedStatement to store user-controlled input and XSS is also very easy to avoid by using for (re)displaying user-controlled input at the webpage.

提交回复
热议问题