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

Need to use public,static keywords in main function?

Answer Posted / sreedhar

yes,need two thing, javac execution start with main
method,that method declars the private,protected not access
the out side class.

Staic block is execute the first part of the progream ,u
need to mention the Staic on thet main method.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an interface be defined inside a class?

1106


How does the garbage collector works in java?

1144


Explain the selection sort algorithm?

1115


Give few examples of final classes defined in Java API?

1282


Why does it take so much time to access an applet having swing components the first time?

1987


What is string in java is it a data type?

1068


What is supplier in java?

1050


What is a protected method?

1194


Can we extend immutable class?

1037


What is the significance of listiterator?

1175


What is the constructor?

1098


What is a dynamic array in java?

1247


What is the escape character in java?

1036


Difference between static synchronization vs. Instance synchronization?

1172


State the difference between creating string as new () and literal.

1182