Ask Experts Questions for FREE Help !
    fakerules's Avatar
    fakerules Posts: 1, Reputation: 1
    New Member

    Sep 8, 2008, 10:33 PM
    Declaring static field
    Why we can't declare a static field in a for loop..
    jstrike's Avatar
    jstrike Posts: 418, Reputation: 44
    Full Member

    Sep 10, 2008, 05:18 PM
    A static variable gets defined at the class level, not at the method level.

Not your question? Ask your question View similar questions


Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.

Check out some similar questions!

Declaring converted stock? How? [ 1 Answers ]

I work for a startup company where I was giving stock as part of compensation with 25% per year vesting agreement. It has been one year since I've been working here and 25% of my allotted shares have been vested (so I own them now). The company is still private and not traded. The share value is...

Declaring an unfit parent [ 1 Answers ]

I have a stepdaughter who's mother has been in and out of jail this child whole life. She is on probation, doesn't follow court orders, and has extreme anger issues especially towards my husband. She has been in jail for 7 months and was just released. She was put in jail for retail theft during...

View more questions Search