Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Declaring static field (https://www.askmehelpdesk.com/showthread.php?t=258371)

  • Sep 8, 2008, 10:33 PM
    fakerules
    Declaring static field
    Why we can't declare a static field in a for loop..
  • Sep 10, 2008, 05:18 PM
    jstrike
    A static variable gets defined at the class level, not at the method level.

  • All times are GMT -7. The time now is 10:26 AM.