File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes a question in Chapter One of RHE's book Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "a question in Chapter One of RHE Watch "a question in Chapter One of RHE New topic
Author

a question in Chapter One of RHE's book

Yi Dong
Greenhorn

Joined: May 19, 2003
Posts: 22
The question is:
Which of the following signatures are valid for the main() method entry point of an application?
A. public static void main()
B. public static void main(String arg[])
C. public void main(String[] args)
D. public static void main(String[] args)
E. public static int main(String [] arg)
the Ans is B, D, E
why E is correct?
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1088
Hi Yi
E is incorrect.
Rajeshwari Natarajan
Ranch Hand

Joined: Mar 05, 2003
Posts: 67
only B and D are correct.


regards<br />Rajeshwari. N
 
Don't get me started about those stupid light bulbs.
 
subject: a question in Chapter One of RHE's book