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
What is incompatible types in java?
What are green threads in java?
What is the difference between final, finally and finalize() in java?
What is object data type?
Explain the private field modifier?
What is stringwriter?
Which methods are used during serialization and deserialization process?
What is the maximum size of array in java?
Explain about serializable interface in java?
What are 3 data types?
Explain the use of javap tool.
What is a type parameter in java?
What is scope & storage allocation of global and extern variables? Explain with an example
What does flag mean in java?
Can a abstract class be declared final?