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

why we write public static void main (String args[])
in core java plz explain briefly??????????????????

Answer Posted / anand kumar jha

we write public because it can be called from outside the envornment and as we know that by using public keyword we will be able to access all the codes from outside,static is used because the JVM(java virtual machine which is also called as the interpreter calles the main function when there is no declaration of class instances so if we dont use static then the interprter will not check for it ,we use string and its a kind of class.It is also known as the commad line argument.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a numeric digit?

1078


What is object-oriented paradigm?

1059


When should we create our own custom exception classes?

1008


What do you mean by ternary operator in java?

1016


Is boolean a data type in java?

960


What are the methods used to implement for the key object in the hash map?

1034


How to calculate the length of a singly linked list in java?

1023


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

1166


How do I start learning java?

1059


What is the difference between keyword and identifier?

1023


What is an inner class in java?

964


What is the difference between form & report?

1034


Is a boolean 1 bit?

1060


How can we run a java program without making any object?

1042


Can you explain inner class.

1072