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
what is the difference between a threads start() and run() methods? : Java thread
What is difference between next () and nextline () in java?
Can you tell me range of byte?
Does substring create a new object?
What is the difference between Grid and Gridbaglayout?
Can we assign the reference to this variable?
Is arraylist an object in java?
What are methods and how are they defined?
Give an example of use of pointers in java class.
What is the purpose of format function?
What is the length of a string?
Why are parameters used in functions?
What is the importance of hashcode() and equals() methods?
How to compare strings in java?
Explain tree set and its features?