illlegal static declaration in inner class Dog.DogTestDrive
<p>illlegal static declaration in inner class Dog.DogTestDrive</p>

<pre><code>    class Dog{

int size;
String breed;
String name;

void bark()
{
System.out.println("Wuff! Wuff!");
}

public class DogTestDrive{

public static void main(String []args)
{
Dog d = new Dog();
d.size = 12;
d.name = "pongy";
d.bark();
d.breed = "Labrodor";
}
} 
}
</code></pre>

<p>modifier 'static' is only allowed in constant variable declarations</p>