可以看到Java小程序代码吗?

Can Java Applet Code Be Seen?

如果我在浏览器中嵌入一个 Java 小程序,有什么方法可以在客户端看到 Java 代码?

使用 HTML5,如果无法通过简单的 "Inspect Element," 查看代码,最终可以检索其源代码。

如果使用 Java 小程序,客户端代码是否完全隐藏?

如前所述here

The programs are first written in Java, compiled or translated to byte codes using a Java compiler, and when a Web browser retrieves a page with the Applet tag, the byte codes are sent to the computer viewing the Web page to be executed there.

这意味着您只能看到字节码,而看不到 Java 源代码。

..making a browser application's code completely invisible..

唯一可行的方法是将功能移动到服务器端,并且只将最终结果提供给用户代理(也称为浏览器)。

正如其他人所提到的,小程序的字节码对于逆向工程来说是微不足道的。