my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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

a question in Chapter One of RHE's book

Yi Dong

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
I agree. Here's the link:
subject: a question in Chapter One of RHE's book
Similar Threads
Signature of main()
final modifier semantic broken?
question about interfaces
Question 9 from Examlab practice exam 1
DOUBT from scjp book