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
any one tell me?
manish kr. pandey
Joined: Aug 30, 2011
Aug 30, 2011 03:07:38
the main method of
public static void main(
in which class this method belong?
Joined: Apr 06, 2010
Aug 30, 2011 03:36:34
Welcome to The Ranch!
Quick answer: whichever class you want to start the program in.
That method isn't part of the standard Java libraries. It's a particular signature that the Java run-time will look for whenever you try to "execute" a class.
Joined: Oct 02, 2003
Aug 30, 2011 06:48:22
Some folks might say "all of them". You can write a project with hundreds of classes, and each and every one can have a main method.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I agree. Here's the link:
subject: any one tell me?
Garbage collection problem
Help with First Java Code - Party.Java
First GUI program
How to call a stand alone class from WAS???
No such method? Kathy & Bert's book p. 78-79
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014