Test
Sin título
Preguntas del test (1)
1Given:
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- AA. It will not compile because it does not implement setAngle method.
- BB. It will not compile because ANGLE cannot be private.
- CC. It will not compile because getAngle() has no body.
- DD. It will not compile because ANGLE field is not initialized.
- EE. It will not compile because of the name of the method Main instead of main.
Información
- Descripción
- Test sobre Sin título, creado por elizhx el 10/10/2014.
- Autor
- elizhx
- Idioma
- Español
- Visitas
- 12
- Valoración
- Aún sin valoraciones Valora este test