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
Is void a wrapper class?
What is void keyword?
What is the integer of 16?
Explain polymorphism citing an example.
Explain restrictions on using enum?
What is the difference between numeric and integer?
Which java collection does not allow null?
What programs use java?
Is an object null?
Explain the use of shift operator in java. Can you give some examples?
What is the tradeoff between using an unordered array versus an ordered array?
Explain about exception propagation?
What is meant by null and void?
What is bigger kb or mb?
Explain the scope or life time of class variables or static variables?