wood burning stoves 2.0*
The moose likes Java in General and the fly likes  non static variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark " non static variable" Watch " non static variable" New topic
Author

non static variable

Saral Saxena
Ranch Hand

Joined: Apr 22, 2011
Posts: 202

Hi folks,

please guide non static variable cannot be refenced from static context..? please advise
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

Saral Saxena wrote:Hi folks,

please guide non static variable cannot be refenced from static context..? please advise


Please SearchFirst.(⇐click) This is a very common question. In fact, you should always search the web before posting a question to a forum.

As I've told you before, sites like this one are not substitutes for doing your own research and spending time trying to figure things out on your own.
Zeeshan Sheikh
Ranch Hand

Joined: Nov 20, 2011
Posts: 144

Please bookmark Java API & Oracle Tutorial your homepage. Trust me this will answer most of your questions.


MySQL Blog
http://mysqlearner.blogspot.com/
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36599
    
  16
If you don’t understand the error message it is likely that you are not using the static context correctly. Please search the beginning Java™ forum and this forum for threads about static methods; there were two, about two weeks ago.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: non static variable
 
Similar Threads
Initializing final arguments
Static and Non-static question
about protected n static
static