Search code examples
javahtmlbrowserapplet

Can Java Applet Code Be Seen?


If I embed a Java applet in a browser, is there any way that the Java code can be seen on the client side?

Using HTML5, if the code can't be seen with a simple "Inspect Element," its source can eventually be retrieved.

If a Java applet is used, is the client-code absolutely hidden?


Solution

  • As mentioned 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.

    That means you can see only the byte code, but not the Java source code.