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

in a console we r giving java <class name> if r pressing
enter where it'll goes

Answer Posted / srujan jack

it transfers the class name to JVM then the JVM calls main() method using class name.
there fore the main() method must be declared with public & static.....

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need strings in java?

1041


Is main is a keyword?

1060


What are different access specifiers in java?

1061


What are the two types of java programming?

1112


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

1031


Define how can we find the actual size of an object on the heap?

1287


Which list does not allow duplicates in java?

999


How many ways can you break a singleton class in java?

1031


What is the memory leak in java?

1101


How is java created?

987


Explain java heap space and garbage collection?

1134


Can an unreferenced object be referenced again?

1248


How does arrays sort work in java?

1056


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

11397


What makes a function well defined?

1036