Member: grayness

grayness is doubt and hope, mixed.

I’m private
 
JULY 12, 2008 @ 01:50 PM

My Saturday:


class Foo {
{ System.out.println("Super Non Static 1");}
static{ System.out.println("Super Static 1");}
public int Bob = 7;
public static final Integer Sam = Integer.valueOf(10);
public static final int Ted = 3;
Foo(){
System.out.println("Super Constructor");
}
{ System.out.println("Super Non Static 2");}
static{ System.out.println("Super Static 2");}
}

class Bar extends Foo{
{ System.out.println("Non Static 1");}
static{ System.out.println("Static 1");}
Bar(){
System.out.println("Constructor");
}
{ System.out.println("Non Static 2");}
static{ System.out.println("Static 2");}
}

public class InitTest{
static Bar bq = new Bar();
public static void main(String[] args){
System.out.println("Inside Main!");
Bar b = new Bar();
}
}


Gives:

Super Static 1
Super Static 2
Static 1
Static 2
Super Non Static 1
Super Non Static 2
Super Constructor
Non Static 1
Non Static 2
Constructor
Inside Main!
Super Non Static 1
Super Non Static 2
Super Constructor
Non Static 1
Non Static 2
Constructor

Do note that without the

static Bar bq = new Bar();


It would be:
Inside Main!
Super Static 1
Super Static 2
Static 1
Static 2
Super Non Static 1
Super Non Static 2
Super Constructor
Non Static 1
Non Static 2
Constructor


This is just a fundamental thing- but it pays to review the fundamentals to the point where you don't even think about them.


Now, back to it...
Comments
phrogg

phrogg

Greenville, SC
August 2005

JUL 12, 2008 03:53 PM

Well that's easy for you to say!

wink

KatieKat

KatieKat

Altoona, FL
May 2006

JUL 12, 2008 07:27 PM

That made my brain feel fuzzy.

Now I understand why you need a break from it every now and again.

Don't worry, I know you'll get it all.

smile love kiss

velvet_petal

velvet_petal

I'm lost
November 2006

JUL 13, 2008 09:11 PM

Uh oh. I have no pertinent remark to make to your blog.

Sn0wbunnie

Sn0wbunnie

Vancouver, BC
September 2007

JUL 13, 2008 10:07 PM

Thank you! I'm totally nervous again... Argh!


tongue

Franpire

Franpire

SUICIDEGIRL

Netherlands

JUL 14, 2008 12:51 PM

Wow surreal your saturday was about as hard going as mine by the looks of things wink
Are you feeling human yet? I know I'm half way back feeling okay again tongue did take me a few days though....

The day went ever so fast and I learned so much, but I can quite honestly say it was the most strenuous day's work I've ever had. About 16 hours non stop, no proper catering, no breaks. I literally felt skull by the end of it all.

I hope I get asked again though tongue Guess I'm just a sucker for punishment blush wink kiss

BrightRedScream

BrightRedScream

Stoney Creek, ON
April 2005

JUL 14, 2008 07:04 PM

This is where I comment just to show that I was here wink

catdad

catdad

Portland, OR
August 2002

JUL 15, 2008 12:11 AM

Thank you!

Saturday, I was mowing my lawn in 90 degree weather. I think I still might prefer that to your Saturday. biggrin

PreviousNext
Past
SEPTEMBER 2008

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

AUGUST 2008

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

JULY 2008

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

JUNE 2008

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30