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

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.
The fields need not be initialized before use.

B.
The methods are mandatory components of a class.

C.
A public class must have a main method.

D.
A class can have overloaded static methods.

E.
A class can have only one private constructor.

F.
A method can have the same name as a field.



Leave a Reply 5

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


anandIyer

anandIyer

CEF, The sum field and the two methods that update the sum field

anandIyer

anandIyer

My above comment is for Q157.

Nima

Nima

Answer is ADF