Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

Looking for tutorial material on 'static', 'final' et al.

Thread view: 
Ramon F Herrera - 11 Nov 2007 07:18 GMT
My background is in Unix C programming, so bear with me...

When I get error messages such as:

  "Cannot make a static reference to the non-static field <xyz>"

I am able to move things around and make the program work. I do have a
rough idea about the issues involved, but I would like to take a
deeper dive into it, and reach a level at which I can predict the
above class of compilation problems before they I introduce them in my
code. Is there any concise, specific explanation around?

-Ramon
Roedy Green - 11 Nov 2007 07:34 GMT
On Sat, 10 Nov 2007 23:18:58 -0800, Ramon F Herrera
<ramon@conexus.net> wrote, quoted or indirectly quoted someone who
said :

>   "Cannot make a static reference to the non-static field <xyz>"

see
http://mindprod.com/jgloss/compileerrormessages.html#CANTMAKESTATICREF
http://mindprod.com/jgloss/static.html
http://mindprod.com/jgloss/instance.html
http://mindprod.com/jgloss/final.html

etc.  Just look up the word of interest in the Java glossary and
follow the links.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.