πŸ“’ Too many exams? Don’t know which one suits you best? Book Your Free Expert πŸ‘‰ call Now!

  • google app store apple app store
  • βœ–

      Question

      Which of the following statements about private members

      in Java is correct?
      A They can be accessed directly from any class Correct Answer Incorrect Answer
      B They can be accessed only within the same class Correct Answer Incorrect Answer
      C They can be accessed by all subclasses Correct Answer Incorrect Answer
      D They are accessible within the same package only Correct Answer Incorrect Answer
      E They are always inherited by subclasses Correct Answer Incorrect Answer

      Solution

      They can be accessed only within the same class.

      Practice Next

      Relevant for Exams:

      ask-question