What happens when a main method is declared as private?

Answer Posted / r.jainrocks@gmail.com

Byte that have main() implementation can become starting
point of program .

if a program have no main()

i.e.
public static void main(String[] args)

properly it can't become starting point in application
it can be use through other program which capable to become
starting point.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bufferedreader in java?

801


What is math floor in java?

699


what type of questions asked for barclays technologies pune please send urgent

5457


Write a program to solve producer consumer problem in java?

776


What are the high-level thread states in java programming?

857


What is the difference between equals() and == in java?

728


what do you understand by synchronization? : Java thread

797


How do you replace all in word?

739


Is ++ operator is thread safe in java?

723


What will happen if static modifier is removed from the signature of the main method?

751


Which oo concept is achieved by using overloading and overriding?

788


Can we use both this () and super () in a constructor?

800


What are wrapper classes in java?

823


What is java and their uses?

790


Why collection is called framework in java?

747