Answer Posted / akansha
Here is the java code of program :
import java.applet.*;
import java.awt.*;
public class FirstApplet extends Applet{
public void paint(Graphics g){
g.drawString("Welcome in Java Applet.",40,20);
}
}
Here is the HTML code of the program:
<HTML>
<HEAD>
</HEAD>
<BODY>
<APPLET ALIGN="CENTER" CODE="FirstApplet.class" WIDTH="800"
HEIGHT="500"></APPLET>
</BODY>
</HTML>
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is there any case when finally will not be executed?
What is the purpose of using break in each case of switch statement?
Can singleton class be serialized?
How do you define a method?
Why collection is called framework in java?
What are invisible components?.
What is use of valueof () in java?
What are the drawbacks of singleton class?
What is mnemonic in assembly language?
How do you use compareto?
Define an abstract class with reference to java.
What is the difference between @before and @beforeclass annotation?
What is Classloader in Java?
What is concurrent hashmap and its features?
What are decalarations?