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
Is a char always 1 byte?
How to remove the trailing spaces from a string?
What is nested class?
Why is multiple inheritance not supported in java?
How many types of variables are there?
What is pass by value?
What is the meaning of course?
What is boolean keyword in java?
What is independent and dependent variables in research?
What is a bubble sort in java?
What is defined as false sharing in the context of multithreading?
What are constants and how to create constants in java?
Explain the concept of hashtables?
Explain method local inner classes ?
how to run ecllipse with jettyserver for windows environment using batch file