Can you write a java code that works both as an applet and an application?

Question :

Can you write a java code that works both as an applet and an application?

Yes. You simply need to add the main() method in your applet program and create a frame in the main() method.


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad