Which one of the following is correct ?

2015

Which one of the following is correct ?

  1. A.

    Java applets cannot be written in any programming language

  2. B.

    An applet is not a small program

  3. C.

    An applet can be run on its own

  4. D.

    Applets are embedded in another applications

Attempted by 266 students.

Show answer & explanation

Correct answer: D

Correct statement: Applets are embedded in another applications.

Explanation: An applet is a small Java program designed to run inside a host environment such as a web browser or an applet viewer. It is embedded in a web page or another application and executed by the Java runtime within that host, so it does not run independently.

Why the other statements are incorrect:

  • The claim that Java applets cannot be written in any programming language is wrong because applets are specifically written in Java.

  • The claim that an applet is not a small program is incorrect; applets are typically small, focused programs meant to be embedded.

  • The claim that an applet can be run on its own is incorrect because applets require a host environment and the Java runtime to execute.

Explore the full course: Mppsc Assistant Professor