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 0

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