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
what is meant by abstract class?
What is heterogeneous in java?
What is difference between module and function?
What is singleton pattern?
What are Normalization Rules? Define Normalization?
What is math in java?
How does remove work in java?
What is difference between identifier and variable?
Is int primitive data type?
Why is the type for real numbers called double?
What differences exist between iterator and listiterator?
What do you mean by thread safe?
Can you start a thread twice in Java?
Realized?
What do you mean by access modifier?