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 do we use public static with the main function in Java?

Answers were Sorted based on User's Feedback



Why do we use public static with the main function in Java?..

Answer / abhi

why all these guys used to say "no need to create objects for a static class" tell what advantages u wil b geting without creating an object.

Is This Answer Correct ?    0 Yes 0 No

Why do we use public static with the main function in Java?..

Answer / ankit

public is written so that it can be called from outside and
static is written because main is called before the creation
of any object and for static methods object is not required.

Is This Answer Correct ?    1 Yes 2 No

Why do we use public static with the main function in Java?..

Answer / deepak divvela

In the main function generally we are using
public static void main(String args[])
that means public is used for call method without being the
member of the class.
and static is used for to call method directly with no need
of the object creation.

Is This Answer Correct ?    3 Yes 7 No

Post New Answer

More Core Java Interview Questions

Difference between abtsract & final

1 Answers   Nous,


why we r not use pointers in corejava?

2 Answers   Samsung,


Explain role of constructor in a java application?

5 Answers  


How do you trim a space in java?

0 Answers  


what is the difference between the "protected and default" modifiers?

8 Answers  


What is a boolean field?

0 Answers  


What is method and methodology?

0 Answers  


how we can make a read-only class in java?

0 Answers  


Why call by value prevents parameter value change?

0 Answers  


Can an abstract class be a final class?

0 Answers  


Describe the Big-O Notation.

0 Answers   Global Logic,


Which sorting algorithm is in place?

0 Answers  


Categories