Discussion Forum : Applets Fundamentals
Question -


What is the length of the application box made by this program?


import java.awt.*;
import java.applet.*;
public class myapplet extends Applet {
Graphic g;
g.drawString("A Simple Applet", 20, 20);
}
Options:
A .  20
B .  Default value
C .  Compilation Error
D .  Runtime Error
Answer: Option C

To implement the method drawString we need first need to define abstract method 


Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *