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
Why stringbuilder is not thread safe in java?
What is a newline character in java?
What is data type modifier?
Can we execute a program without main?
What is dot operator?
How do you input a string in java?
What is the new line character?
What are inbuilt functions in java?
Can we have multiple public classes in a java source file?
What are the features of junit?
Why there is no call by reference in java?
What are the characteristics of java?
What is the function of compareto in java?
What is lossy conversion in java?
Explain reverse a linked list iterative solution in java?