why applet doesn't have main? isn't possible a program with
out main?

Answer Posted / nagaraju gurram

first of all we can write a program without main method .
and in case if applets they are intended for web development so the applets need to be alive during the navigation . but main will exit after completion of the execution and terminates the object .and main thing is main is a starting point of a program and there is no controlling on main but in case of web page we have to control the object during the navigation.that is the reason where an object should contain a life and through life cycle methods defined.............

Than Q

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the basic concepts of OOPS in java?

564


What is the difference between equals() and?

577


What is continuity of a function?

517


what do you mean by stream pipelining in java 8? Explain

526


What are the basics of core java?

540






Explain about OOPS concepts and fundamentals.

589


Can we sort a map in java?

570


How transient variable is different from volatile variable?

554


What restrictions are placed on method overriding in java programming?

536


What does isempty () do in java?

593


How java enabled high performance?

578


What are user defined exceptions?

582


what is deadlock? : Java thread

519


Explain about member inner classes?

580


How large is a boolean?

549