In the following code snippet, identify the variable that is being shadowed:
public class ShadowingExample {
static int num = 1;
public static void main(String[] args) {
System.out.println(num);
int num = 2;
System.out.println(num);
}
}