What is the need to declare main() method as static in Java?

Answer Posted / juhi

If main method is static it should not be able to access any
other methods(other than static methods). but this is not
the case y?

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rxjava2?

536


What are the advantages of java 8’s date and time api over old date api and joda time api?

722


Which instutute is offering course for rhino jain slee

1930


there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.

2716


How do I run a project in eclipse?

543






How can one prove that the array is not null but empty?

587


Explain daemon thread.

635


What is the difference between Logical Parallelism and Physical Parallelism?

3033


What is mq in java?

557


Which framework is best for rest api java?

541


What is the front end for java?

565


What is explicit casting?

622


Does jvm maintain a cache by itself? Does the jvm allocate objects in heap? Is this the os heap or the heap maintained by the jvm? Why

554


What is a java executable jar file?

545


What is profile in java?

497