Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
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
author & internet detective
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
signature of main() method....
a question in Chapter One of RHE's book
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014