MCQ Single Best Answer Not Set

QWhich of the following statements regarding static methods are correct?

1. Static methods are difficult to maintain, because you can not change their implementation.
2. Static methods can be called using an object reference to an object of the class in which this method is defined.
3. Static methods are always public, because they are defined at class-level.
4. Static methods do not have direct access to non-static methods which are defined inside the same class.

ID: #2183 Java Constructor and Methods 10,979 views
Question Info
#2183Q ID
Not SetDifficulty
Java Constructor and MethodsTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 1 and 2
  • B 2 and 4
  • C 3 and 4
  • D 1 and 3
Correct Answer: Option B

Explanation

2 and 4

Share This Question

Challenge a friend or share with your study group.