boglin: (Default)
[personal profile] boglin
Well, that's a surprise.

After all -

NOBODY expects the Spanish Inquisition!

Date: 2005-04-19 11:29 pm (UTC)
From: [identity profile] sciamachy.livejournal.com
Or even:
public class WhoAmI {
    public void go(){
        while(true)
            System.out.println("NO! I'M LARS ULRICH!!");
    }

    public static void main(String[] args){
        new WhoAmI().go();
    }
}

Date: 2005-04-19 11:33 pm (UTC)
From: [identity profile] liz-lowlife.livejournal.com
With your non- 'keep it live' geekery-sorcery, you are confusing me, Sir.

I am but a humble drummer.

Date: 2005-04-20 07:00 am (UTC)
From: [identity profile] sciamachy.livejournal.com
Both classes define a method which repeatedly prints out "NO! I'M LARS ULRICH!!", called go(). The main(String[] args) method is the one that is set in motion by default, and that creates an instance of the class and sets its go() method in motion. So, in BASIC, it's essentially:
10 PRINT "NO! I'M LARS ULRICH!!"
20 GOTO 10

just rendered into Java.

Date: 2005-04-20 04:53 pm (UTC)
From: [identity profile] liz-lowlife.livejournal.com
Now that, I *do* understand!

I had a ZX Spectrum as a tiddler!

Date: 2005-04-20 07:02 am (UTC)
From: [identity profile] sciamachy.livejournal.com
Technically, I think the first one's one to avoid as it calls itself recursively but has no way to get out of the loop, so there's a good possibility it'd fall over having claimed all your memory. BICBW.

Profile

boglin: (Default)
boglin

December 2009

S M T W T F S
  12345
678 9101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 6th, 2025 07:43 am
Powered by Dreamwidth Studios