Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is a superclass?

1407


Can we call the constructor of a class more than once for an object?

1140


What is pojo class in java?

1198


What are pass by reference and pass by value?

1037


what is heap memory?

1160


What is method overloading in JAVA? Why is it not present in C ?

1145


Why do we need wrapper class?

1040


Give me some null interfaces in java?

1115


Write a method that will remove given character from the string?

1083


How to access arraylist elements in java?

1036


Is java hard to learn?

965


What is the difference between a break statement and a continue statement?

1085


Can we change the scope of the overridden method in the subclass?

1457


What are singleton services?

965


What is the difference between char and char *?

1146