What happens on attempting to compile and run the following code?
public class Graft
{
public static void main(String argv[])
{
Graft g = new Graft();
}
protected Graft()
{
for(int i =0; i <10; i ++)
{
System.out.println(i);
}
}
}
Correct Answer: Successful compilation with output 0 to 9
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions