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 pojo class in java?
Can you access non static variable in static context?
How will you initialize an Applet?
Why method overriding is used?
List out benefits of object oriented programming language?
What is polymorphism and what are the types of it?
Can we have any code between try and finally blocks?
Can we serialize arraylist in java?
When is an object subject to garbage collection?
Is final static java?
Can each java object keep track of all the threads that want to exclusively access it?
What is lazy programming?
Is void a data type in java?
Is it possible to instantiate the abstract class?
Does java arraylist maintain insertion order?