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 a main method is declared as private?

Answer Posted / dharma

main method signature must be like

public static void main(String args[])

if we declare as private then it compiles successfully

but at Runtime it says

"Main method not found in class"

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string buffer?

993


What is an immutable object?

1169


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

1063


What is a Hash Table? What are the advantages of using a hash table?

1131


Why you should not use singleton?

1025


Can you make a constructor final in Java?

1193


When do you call copy constructor?

1023


What does || || mean in math?

992


Why is java logo a cup of coffee?

1252


What are 4 pillers of object orinted programming?

1074


Can we have 2 main methods in java class?

1065


What are the advantages of exception handling?

1116


What is the purpose of finalization in java programming?

1070


What is integer size in java?

1092


Why do I need to declare the type of a variable in java?

1153