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

Answer Posted / abhijit

public means-accessable from anywhere
static means-the point ,from where compilar can start its
compilation without object.

Is This Answer Correct ?    11 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

555


What is methods in java?

508


What are the 6 functions?

506


Is null a keyword in java?

553


How do you differentiate abstract class from interface?

523






What is regex used for?

538


What is extension method in java?

559


What are peerless components?

616


What are untrusted applets?

585


What is size_t?

499


What are the differences between path and classpath variables?

484


Can a java program have 2 main methods?

543


Can you change array size in java?

524


Explain public static void main(string args[]).

563


What is the difference between actual and formal parameters?

506