Java OCA OCP Practice Question 171

Question

Which of the following is not a valid order for elements in a class?

  • A. Constructor, instance variables, method names
  • B. Instance variables, constructor, method names
  • C. Method names, instance variables, constructor
  • D. None of the above: all orders are valid.


D.

Note

The instance variables, constructor, and method names can appear in any order within a class declaration.




PreviousNext

Related