A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Testing the application with "public static void main" method
Joined: Apr 12, 2005
Feb 20, 2013 05:37:40
Is it too wrong to
an application with a bunch of classes, each one with its "public static void main" method?
SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
Joined: May 26, 2003
Feb 20, 2013 20:14:34
Why does each one have a main method?
I don't think it is bad to test a main method if it exists "in the real code." Like when developing a command line utility. But I wouldn't add a main method for the purposes of
. That's what
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
It is sorta covered in the
JavaRanch Style Guide
subject: Testing the application with "public static void main" method
a question in Chapter One of RHE's book
signature of main() method....
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014