What will happen when you attempt to compile and run the following code
public class Hope{ public static void main(String argv[]){ Hope h = new Hope(); } protected Hope(){ for(int i =0; i <10; i ++){ System.out.println(i); } } }
Compilation and running with output 0 to 9
Run time error: Constructors cannot be declared protected
Compilation error: Constructors cannot be declared protected
Compilation and running with output 0 to 10
None of the above