wood burning stoves 2.0
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "illegal start of expression" Watch "illegal start of expression" New topic

illegal start of expression

prashantK Singh

Joined: Sep 11, 2006
Posts: 19

class s
public static void main(String[] a){
static int 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
It's not a secret anymore!