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?

Answers were Sorted based on User's Feedback



What happens when a main method is declared as private?..

Answer / varsha vilas kalebag

IF MAIN METHOD IS DECLARED AS PRIVATE ,THEN WE CAN NOT
ACESSES THE PRVIATE MEMBERS IN ANOTHER CLASS

Is This Answer Correct ?    5 Yes 43 No

What happens when a main method is declared as private?..

Answer / vani

Nothing Happen.
Code compiles properly and executes properly.

Is This Answer Correct ?    5 Yes 76 No

Post New Answer

More Core Java Interview Questions

What is isa relationship?

0 Answers  


In java, how many ways you can take input from the console?

0 Answers  


What are the restrictions imposed on method overriding?

0 Answers  


Can you declare the main method as final?

0 Answers  


Why is java not 100% pure oops?

0 Answers  


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

2 Answers  


What is output buffer?

0 Answers  


What is stack class in java?

0 Answers  


How can I debug the Java security exceptions and AccessControlExceptions?

0 Answers   IBM,


Why should we use java?

1 Answers   IBM,


What is the use of runnable interface?

0 Answers  


What are the various access specifiers in java?

0 Answers  


Categories