Câu hỏi phỏng vấn Java
Câu hỏi

What is the difference between Applets loaded over ...

Câu trả lời

The difference between applets loaded over the internet and applets loaded via the file system primarily revolves around security restrictions and the method of loading.

  1. Loading Mechanism:

    • Internet-Loaded Applets: When an applet is loaded over the internet, it is typically fetched by the applet classloader, which is responsible for downloading the applet's bytecode from a remote server[1][2][7].
    • File System-Loaded Applets: Applets loaded via the file system are read directly from the local disk. This loading is handled by the file system loader, which does not involve fetching data from a remote server[1].
  2. Security Restrictions:

    • Internet-Loaded Applets: These applets operate under strict security restrictions because they are fetched from potentially untrusted sources. They are run in a restricted environment known as a "sandbox," where they have limited access to resources. Specifically, they cannot access local file systems, execute local programs, or establish network connections except back to the host from which they were loaded[1][3][5].
    • File System-Loaded Applets: Since these applets are loaded from the local system, they are generally granted more privileges compared to internet-loaded applets. They can read and write to the local file system, execute local programs, and load libraries. These applets are not restricted by the sandbox security model and do not pass th...
senior

senior

Gợi ý câu hỏi phỏng vấn

middle

What differences exist between Iterator and ListIterator ?

senior

What is meant by binding in RMI?

middle

Which Swing methods are thread-safe?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào