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

What do you mean by composition in java?

550


Is jdk required on each machine to run a java program?

730


How do you clear a method in java?

526


What is the significance of java packages?

603


What exactly is a .class file?

564






Can we override constructor in java?

562


How do you write a conditional statement?

507


What is a 16 bit word?

552


What are the differences between the constructors and methods?

559


Differece between class and generic class?

551


how we can create packages in java?

509


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

511


I want to store more than 10 objects in a remote server? Which methodology will follow?

2622


Explain the importance of thread scheduler in java?

586


placement papaers of spring computing technology

1015