File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Aug 02, 2009
Dec 17, 2009 08:36:51
why only public static void main(
arg) use in
, why there is void return type, why not int, float etc.
Gunjan Deogam SCJP6, SCWCD5
Joined: Oct 27, 2005
Dec 17, 2009 09:31:34
Because that's how Java is designed. As for the return type, what would it need to return? Granted, the operating system can use the return type of the application, but for Java you use System.exit for that.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
It is sorta covered in the
JavaRanch Style Guide
subject: java core
why static there?
error- ambiguous reference to method
URGENT : Suggestions needed on OLE
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014