Assignment at class level seperately from variable declaration :    

     class Type
        {
        int s;
        s=10;
        public static void main(String[]args)
        {
        
       
    
     System.out.println(s);
        
        }
        }
    
    this program creates <identifier> expected error at **s=10** why?but when we write(int s;s=10;)in main program then it doesn't create any error at s=10 why? 
Assigning values at class level seperately from variable declaration
