Link Details

Link 98639 thumbnail
User 185351 avatar

By jsugrue
via java.dzone.com
Published: Jul 28 2008 / 15:54

I asked a question a few days ago, regarding static members in inner classes. I presented an example with two static members, one was integer the other Object type, the integer compiled correctly and the Object did not.
  • 23
  • 0
  • 1463
  • 340

Comments

Add your comment
User 283139 avatar

ceaseoleo replied ago:

1 votes Vote down Vote up Reply

overall good article, but.. in one statement you say only allows primitive types, but in the next line you declare String as static final.... String is not technically a primitive , but should be considered an exception... just adding clarity. :)

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.