*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes illegal start of expression 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 "illegal start of expression" Watch "illegal start of expression" New topic
Author

illegal start of expression

prashantK Singh
Greenhorn

Joined: Sep 11, 2006
Posts: 19
hi,

class s
{
public static void main(String[] a){
static int i;
System.out.println(i);
}
}

why this is showing illegal start of expression
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
The keyword static cannot be applied to local variables.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: illegal start of expression
 
Similar Threads
static Random
Illegal start of expression
Illegal Start of Expression
java problems
method