Computer Science, asked by akash434, 1 year ago

what is difference between applet and jframe?

Answers

Answered by tanayarao
2
a website and meant to be run in a web broswer. 

They are used for client side of Java web base application.
The browser's Java Plug-in software manages the lifecycle of an applet.
Applets are don't have all the powers and privledges as compared to frame based application as they are run in sandbox mode for example They cannot access client resources such as the local filesystem, executable files, system clipboard, and printers for security reasons ( in order to protect host computer from unnecessary access )

Applets don't need a main method as their starting point unlike frame based applications.

Frames on the other hand is a window which is decorated that is contains border , title ,the maximise minimise and close buttons.
Frame based applications come under the category of desktop Java applications and run on their own without the need of web browser.
Similar questions