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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens when main () method is declared as private?

651


How do you add an arraylist to an array in java?

511


What is null mean in java?

627


Is string a wrapper class?

519


What are the benefits of immutable objects?

542






Can we write class inside a class in java?

553


What is the r character?

590


Where are local variables stored?

512


What happens if an exception is throws from an object's constructor?

631


What is a byte string?

625


What is an anonymous class in java?

551


what are abstract functions?

561


Which package is imported by default?

637


What does n mean in java?

505


What is data type in java?

487