How to access a method that it declared as protected?
Answer Posted / ravikiran(aptech mumbai)
a protected method can be accessed with in the same packege
and subclasses outside of the package
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Where are register variables stored?
What is the difference between call by reference and call by pointer?
What is collection api?
What is try-with-resources in java?
What is static and final keyword in java?
what is encapsulation in java? Explain
What does the three dot emoji mean?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What is the indent key?
What is java in simple terms?
What is stringbuffer in java?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
What is the static import?
What are heterogeneous objects?
Why we do exception handling in java and how many types of exceptions are there?