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 a superclass?
Can we call the constructor of a class more than once for an object?
What is pojo class in java?
What are pass by reference and pass by value?
what is heap memory?
What is method overloading in JAVA? Why is it not present in C ?
Why do we need wrapper class?
Give me some null interfaces in java?
Write a method that will remove given character from the string?
How to access arraylist elements in java?
Is java hard to learn?
What is the difference between a break statement and a continue statement?
Can we change the scope of the overridden method in the subclass?
What are singleton services?
What is the difference between char and char *?