How to access a method that it declared as protected?
Answers were Sorted based on User's Feedback
Answer / ranganathkini
If a method is marked protected, only the subclass of that
class can access it. To make it accessible to other classes,
the subclass of that class can override the protected method
and the override can be marked as public making it
accessible to other classes.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
Explain the key functions of data binding?
0 Answers Akamai Technologies, Aspire, Impetus, Infogain, Tavant Technologies, Virtusa,
Is java developer a good career?
Explain try and catch keywords in java?
Default layout of panel and frame?
Can string be considered as a keyword?
What are singleton services?
What is the function of static in java?
Why arraylist is not synchronized in java example?
Integer.parse Int(bf.readLine(System.out.println("enter value for n["+m+"]:"))); can it run under this
Discuss 2D arrays.
How do you compare two strings lexicographically?
What is array initialization in java?