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

how to open and edit XML file in Weblogic???

1537


When is the arraystoreexception thrown?

560


Give example to differentiate between call by value and call by reference.

582


What does  mean in regex?

563


What is the difference between import java.util.date and java .util?

555






Is java se open source?

558


What is type safety in java?

478


What is static method with example?

605


Is it possible to compare various strings with the help of == operator?

537


What is an iterator interface in java programming?

520


What is a constructor, constructor overloading in java?

520


What is an object’s lock and which object’s have locks?

499


What does file separator do in java?

526


what is the messsage u r going to get from an objectoriented programing?

1598


What is stored procedure. How do you create stored procedure ?

1481