bt0074 unit 8 faqs
Post on 06-Apr-2018
220 Views
Preview:
TRANSCRIPT
-
8/2/2019 Bt0074 Unit 8 Faqs
1/1
Frequently Asked Questions
1
Subject Name: OOPS with Java Subject Code: BT0074
Unit 8: AppletsBalasubramani R
Assistant ProfessorDept. of ITQ1: What are Applets?A1: An applet is a Java program that can be embedded in a web page. Java applications are
run by using a Java interpreter. Applets are run on any browser that supports Java.Applets can also be tested using the appletviewer tool included in the Java DevelopmentKit.
Q2: What are restrictions on Applets?A2: The Applets cannot read or write files on the users system. They cannot load or run any
programs stored on the users system.
Q3: What methods are there in the life cycle of an Applet?A3: The life cycle of an applet is implemented using init(), start(), stop(), and destroy()
methods.
Q4: What is the init() method?A4: The init() method is called the first time an applet is loaded into the memory of a
computer. You can initialize variables, and add components like buttons and check boxesto the applet in the init() method.
Q5: What is the function of update() method?A5: The update() method takes a Graphics class object as a parameter. When the applet
area needs to be redrawn, the Windows system starts the painting process. The update()method is called to clear the screen and calls the paint() method. The screen is thenrefreshed by the system.
top related