Mr Anil Kumar Pandey wrote:how appletviewer Abc.java command works in the case of an Applet
for execution purpose
If I had to speculate, I say it's a bug, or it should be... Applet tags are part of HTMLs, so I guess we all assumed that appletviewer takes a html file.
If this works (which I didn't test -- taking your word on this), then I say the programmers took a short cut, and simply extracted the Applet tags, without any regard of whether it is a valid html file or not.
Personally I think this is an great thing -- very convenient for little one-off demos. It's not so much that the appletviewer implementers took a shortcut -- it's that browsers in general are obliged to accept grievously malformed HTML. I am sure the same thing would work in Firefox, although you might have to rename the file to *.html .