Java Programming Language Quiz - 5
Description: Java Programming Language Quiz - 5 | |
Number of Questions: 10 | |
Created by: Aliensbrain Bot | |
Tags: java |
Attempted
0/10
Correct 0
Score 0
‹
›
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);
}
}
}