Which three statements are true about the structure of a Java class?
A.
A public class must have a main method.
B.
A class can have only one private constructor.
C.
A method can have the same name as a field.
D.
A class can have overloaded static methods.
E.
The methods are mandatory components of a class.
F.
The fields need not be initialized before use.
BCD, Testicle
CDF, public class can exists w/o main method, a class can consists of only fields
you are correct
That’s not correct, the field does not need to initialize, objects and classes need to be initialized before use, NOT a field. A field can be anything.
Im sorry i did not see the “not”, so i guess that one is correct then.
A.
A public class must have a main method.
no tiene porque tener un metodo main false.
B.
A class can have only one private constructor.
mmm no tiene porque tener un solo constructor privado. duda.
C.
A method can have the same name as a field.
si un metodo puede tener mismo nombre del archivo. true
D.
A class can have overloaded static methods.
si una clase puede tener sobre cargado un metodo estatico. true
E.
The methods are mandatory components of a class.
F.
The fields need not be initialized before use.
no entiendo pero dice que no necesita inicializar los fields despues de usarlos eso seria . true
CDF.