A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
I agree. Here's the link:
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