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
Can you use this() and super() both in a constructor?
Is empty in java?
What is the purpose of using javap?
How hashmap works in java?
What is the difference between path and classpath variables?
What is java ceil?
What is the difference between preemptive scheduling and time slicing in java programming?
What is the purpose of the enableevents() method in java programming?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
Does substring create a new object?
What is the main method java?
What is local class in java?
Is null or empty java?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
Write a program in java to find the maximum and minimum value node from a circular linked list.