File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a question in Chapter One of RHE's book

 
Yi Dong
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1090
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yi
E is incorrect.
 
Rajeshwari Natarajan
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
only B and D are correct.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic