Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: Question regarding methods and classes Date: Sun, 23 Oct 2011 01:37:29 -0700 Organization: Canadian Mind Products Lines: 24 Message-ID: <2fk7a71akc2k7fr1ennkiql4um7sbnbp2h@4ax.com> References: <4ea389df$0$13444$9a566e8b@news.aliant.net> Reply-To: Roedy Green NNTP-Posting-Host: Z2l1DcCELS0rATq8NqV4Sw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9107 On 23 Oct 2011 03:28:31 GMT, Linus Flustillbe 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.