Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9107
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Question regarding methods and classes |
| Date | 2011-10-23 01:37 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <2fk7a71akc2k7fr1ennkiql4um7sbnbp2h@4ax.com> (permalink) |
| References | <4ea389df$0$13444$9a566e8b@news.aliant.net> |
On 23 Oct 2011 03:28:31 GMT, Linus Flustillbe <admin@nacs.dyndns-office.com> wrote, quoted or indirectly quoted someone who said : >Does a method have to be part of a class that gets instatiated or can it >live in a class to be available to all other classes without >instantiation...it's available when it's imported? You can have static methods that can be called without creating any objects. The class itself will get loaded and an invisible class object will be created with slots for all the static variables. This is a very basic feature of Java. I suggest you get an text, even a badly out of date one, to explain such things. see http://mindprod.com/jgloss/gettingstarted.html -- Roedy Green Canadian Mind Products http://mindprod.com It should not be considered an error when the user starts something already started or stops something already stopped. This applies to browsers, services, editors... It is inexcusable to punish the user by requiring some elaborate sequence to atone, e.g. open the task editor, find and kill some processes.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Question regarding methods and classes Linus Flustillbe <admin@nacs.dyndns-office.com> - 2011-10-23 03:28 +0000
Re: Question regarding methods and classes Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-10-22 20:44 -0700
Re: Question regarding methods and classes Patricia Shanahan <pats@acm.org> - 2011-10-23 06:14 +0100
Re: Question regarding methods and classes markspace <-@.> - 2011-10-22 22:12 -0700
Re: Question regarding methods and classes markspace <-@.> - 2011-10-22 22:14 -0700
Re: Question regarding methods and classes Linus Flustillbe <admin@nacs.dyndns-office.com> - 2011-10-23 13:32 +0000
Re: Question regarding methods and classes markspace <-@.> - 2011-10-23 07:43 -0700
Re: Question regarding methods and classes Lew <lewbloch@gmail.com> - 2011-10-23 08:54 -0700
Re: Question regarding methods and classes Roedy Green <see_website@mindprod.com.invalid> - 2011-10-23 01:37 -0700
Re: Question regarding methods and classes Linus Flustillbe <admin@nacs.dyndns-office.com> - 2011-10-23 13:49 +0000
Re: Question regarding methods and classes Roedy Green <see_website@mindprod.com.invalid> - 2011-11-02 01:23 -0700
Re: Question regarding methods and classes Linus Flustillbe <admin@nacs.dyndns-office.com> - 2011-10-23 09:11 +0000
csiph-web