Java - What is the difference between an Applet and an Application?

What is the difference between an Applet and an Application?

- An applet runs with the control of a browser whereas an application runs standalone. The application runs with the support of a virtual machine.

- An applet has restrictions with respect to network access whereas the application does not. Interactive and dynamic applications can be used with applet. A java application can have full access to network and local file system.
What are the component and container classes?
Component and container classes - A component is a graphical object. A few examples of components are: Button, Canvas, Checkbox...
Purpose of invalidate and validate methods
Purpose of invalidate and validate methods - The invalidate method is called as a side efftect of an addition or deleting some component...
What are AWT peers? When are peers created and destroyed?
What are AWT peers? - A Component is associated with a standard AWT button object, a peer object (hidden button object internal to the native GUI)...
Post your comment