Q. In Java, which access modifier allows a method to be accessed from any class in any package?

  • (A) public
  • (B) private
  • (C) protected
  • (D) default (package-private)
πŸ’¬ Discuss
βœ… Correct Answer: (A) public

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
125
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vijay Sangwan
Publisher
πŸ“ˆ
85%
Success Rate