Which three statements are true about the structure of …

Which three statements are true about the structure of a Java class?

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.



Leave a Reply 6

Your email address will not be published. Required fields are marked *


Sucuk

Sucuk

BCD, Testicle

as

as

CDF, public class can exists w/o main method, a class can consists of only fields

kika

kika

you are correct

Sucuk

Sucuk

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.

Sucuk

Sucuk

Im sorry i did not see the “not”, so i guess that one is correct then.

jeronimo

jeronimo

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.