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
How to restrict a member of a class from inheriting by its sub classes?
What is meant by tab pans?
Can final class have constructor?
What are the Class Libraries ?
What is the use of arraylist in java?
How to find the given number is a prime number or not by getting input from the user
What if constructor is protected in java?
Difference between a class and an object?
What is meant by data hiding/encapsulation?
When throw keyword is used?
How do you convert boolean to boolean?
What is one third plus one third as a fraction?
Why is a constant variable important?
Can a abstract class be declared final?
What is the old name of java?