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

How to restrict a member of a class from inheriting by its sub classes?

774


What is meant by tab pans?

620


Can final class have constructor?

478


What are the Class Libraries ?

570


What is the use of arraylist in java?

506






How to find the given number is a prime number or not by getting input from the user

523


What if constructor is protected in java?

534


Difference between a class and an object?

554


What is meant by data hiding/encapsulation?

550


When throw keyword is used?

566


How do you convert boolean to boolean?

497


What is one third plus one third as a fraction?

460


Why is a constant variable important?

477


Can a abstract class be declared final?

535


What is the old name of java?

491