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...

What happens when the main() isn't declared as static?

Answer Posted / nashiinformaticssolutions

When the main method is not declared as static, then the program may be compiled correctly but ends up with a severe ambiguity and throws a run time error that reads

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of coding?

1011


Are private methods final?

945


What are the differences between throw and throws?

1104


What is "this" keyword in java? Explain

1142


Explain the differences between static and dynamic variables?

1195


What is difference between local variable and global variable?

1077


What is the difference between inheritance and encapsulation?

1194


How do you replace a string in java?

1048


Can we use return in constructor?

995


What are thread safe functions?

987


Can memory leak happen java?

1045


Explain about the dynamic behavior of core java?

1184


What is parsing a sentence?

1161


How do you create a bulleted list?

1306


What type of variable is gender?

1039