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 difference between synchronized methods and synchronized statements?
Does java support function overloading, pointers, structures, unions or linked lists?
What is array in java?
Is java a super set of javascript?
Can we override final method?
What is java lang object?
Explain how can you debug the Java code?
What are the restrictions that are applied to the java static methods?
What is thread pool? How can we create thread pool in java?
What is enhanced loop in java?
Why wait and notify methods are declared in object class?
What about features of local inner class?
What is method in java ?
What is null statement?
What is sizeof in java?