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
How does list work in java?
What are the important methods of java exception class?
Can we override private method in java?
What is a string token?
Define how does a try statement determine which catch clause should be used to handle an exception?
How do you classify Dialog Box?
How do you make a thread in java?
State some advantages of java?
How to change the priority of thread or how to set the priority of thread?
What are the advantages of functions?
Can a static class have a constructor java?
what is the use of bean managed and container managed with example?
Explain about interthread communication and how it takes place in java?
Can an object be null?
How many types of parsers are there?