Oracle
1Z0-803 · Question #139
1Z0-803 Question #139: Real Exam Question with Answer & Explanation
The correct answer is B: A method can have the same name as a field.. See the full explanation below for the reasoning.
Question
Which three statements are true about the structure of a Java class?
Options
- AA class can have only one private constructor.
- BA method can have the same name as a field.
- CA class can have overloaded static methods.
- DA public class must have a main method.
- EThe methods are mandatory components of a class.
- FThe fields need not be initialized before use.
Community Discussion
No community discussion yet for this question.