Which statement is correct for private member in Java?

65. Which statement is correct for private member in Java?

  1. Access outside the class is allowed
  2. Any class can access
  3. Declared using private keyword
  4. All of these

Answer: C) Declared using private keyword

Explanation:

The private members are declared using the private keyword.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.