How to access a method that it declared as protected?
Answer Posted / 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 |
Post New Answer View All Answers
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
What is an argument java?
What do you mean by composition in java?
What are thread priorities and importance of thread priorities in java?
How do you test a method for an exception using junit?
What is variable and its types?
What is the difference between pass by reference and pass by pointer?
Explain about oops concepts.
When do we use synchronized blocks and advantages of using synchronized blocks?
What is the map interface in java programming?
How is java created?
What is double word?
What is unsigned char?
What is integer valueof?
How many types of equations are there?