Multiple Choice Question

Quiz Guidelines

 

QID: 
101
Question: 

Given:

class Triangle
{
    public int base;
    public int height;
    private static double ANGLE;
    public static double getAngle();
      public static void Main(String[] args)
         {
             System.out.println(getAngle());
         }
}

Identify the correct statements:

Select 1 option
A. It will not compile because it does not implement setAngle method.
B. It will not compile because ANGLE cannot be private.
C. It will not compile because getAngle() has no body.
D. It will not compile because ANGLE field is not initialized.
E. It will not compile because of the name of the method Main instead of main. 

Q&A Set: