What's wrong in following code,

class temp {
public static void main(String args[]) {
static int i=10;
}
}

Why can not i have a static variable in a static function?