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

How does list work in java?

864


What are the important methods of java exception class?

1024


Can we override private method in java?

1044


What is a string token?

956


Define how does a try statement determine which catch clause should be used to handle an exception?

1065


How do you classify Dialog Box?

1065


How do you make a thread in java?

1028


State some advantages of java?

1179


How to change the priority of thread or how to set the priority of thread?

988


What are the advantages of functions?

869


Can a static class have a constructor java?

932


what is the use of bean managed and container managed with example?

1925


Explain about interthread communication and how it takes place in java?

963


Can an object be null?

913


How many types of parsers are there?

959