Q. – Which three statements are true about the structure of a Java class?
A) Fields need to be initialized before use.
B) A public class must have a main method.
C) Methods and fields are optional components of a class.
D) A class cannot have the same name as its field.
E) A class can have final static methods.
F) A class can have overloaded private constructors.
⧪ please give your answer in a comment section.
A) Fields need to be initialized before use.
B) A public class must have a main method.
C) Methods and fields are optional components of a class.
D) A class cannot have the same name as its field.
E) A class can have final static methods.
F) A class can have overloaded private constructors.
⧪ please give your answer in a comment section.
4 Comments
A C E
ReplyDeleteAEF
ReplyDeleteC E F
ReplyDeleteCEF
ReplyDelete