× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I am gasping the language pretty good. I just don't use it in real life yet. 
Here at work I am still using RPG, but I am hoping to get into a bit of Java 
this year.

On Thu, 07 March 2002, "Ducret, Gilles (CH)" wrote:

>
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
> --
> [ Picked text/plain from multipart/alternative ]
> It is what we call a static initializer.
>
> It is very usefull to initialize any static information related to
> a class. You can also make sure in that initializer that the ressources
> you will need for the instances of that class are available.
>
> It is loaded the first time it is used.
>
> You will discover later how usefull it is when you will understand what
> static variables are.
>
> -----Original Message-----
> From: Mike Wills [mailto:programmer@koldark.net]
> Sent: mercredi, 6. mars 2002 20:09
> To: java400-l@midrange.com
> Subject: Have you seen anything like this?
>
>
> In my java class yesterday, my instructor went over a new constructor type
> thing. He called it a class constructor. Here is an example:
>
> public class Test {
>    static {
>        set of instructions here
>    }
>
>    Test() {
>        set of instructions here
>    }
>
>    .
>    .
>    .
> }
>
> Basically what he said it does is to set up some initial class based stuff
> the first time the class is used in the program. Like we are going over
> linked lists, and he used the example of setting up a dummy node.
>
> Has any seen something like this before? What is it actually called?
>
> I would like to tell him, "Yes that is what it is called," or "It is
> actually called ...." <VBG>
>
> Thanks,
>
> ---------
> Mike Wills
> AS400 Programmer
> programmerATkoldarkDOTnet
>
> Programming today is a race between software engineers striving to build
> bigger and better idiot-proof programs, and the universe trying to build
> bigger and better idiots. So far, the universe is winning.
> -Robert Cringley
> __________________________________________
> Launch your own web site Today!
> Create a Web site for your family,
> friends, photos, or a special event.
> Visit: http://www.namezero.com/sitebuilder
> _______________________________________________
> This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
> mailing list
> To post a message email: JAVA400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
> or email: JAVA400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.
>
>
> **********************************************************************
> This E-mail and any files transmitted with it are confidential
> and intended for the exclusive use of the addressee(s) only.
>  You should not disclose its contents to any other person.
> If you are not the intended recipient please notify the sender
> immediately.
> **********************************************************************
> _______________________________________________
> This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
>mailing list
> To post a message email: JAVA400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
> or email: JAVA400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.

---------
Mike Wills
AS400 Programmer
programmerATkoldarkDOTnet

Programming today is a race between software engineers striving to build bigger 
and better idiot-proof programs, and the universe trying to build bigger and 
better idiots. So far, the universe is winning.
-Robert Cringley
__________________________________________
Launch your own web site Today!
Create a Web site for your family,
friends, photos, or a special event.
Visit: http://www.namezero.com/sitebuilder


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.