File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes static variable in method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "static variable in method" Watch "static variable in method" New topic
Author

static variable in method

aruna ver
Greenhorn

Joined: Jun 24, 2002
Posts: 8
hi
can we declare static variable inside a method
i tried do that i am getting compilation error
pls can anybody tell me why am i getting compilation error
thanks
arunabhanu
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
You can not create a static variable inside a method.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Dan Culache
Ranch Hand

Joined: Jan 24, 2003
Posts: 70
The only accepted modifier for local variable is
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: static variable in method