What is a protected void?



What is a protected void?..

Answer / Nitish Raj

In Core Java, 'protected void' is an access modifier and a return type for methods. A protected method can be accessed within its own package as well as from any subclasses outside the package. However, it cannot be directly accessed from another class within the same package.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a finally block?

1 Answers  


What is multithreading and its advantages?

1 Answers  


How do you make an arraylist empty in java?

1 Answers  


Explain the polymorphism principle?

1 Answers  


What is the collection interface?

1 Answers  


Why are inner classes required?

3 Answers   Oracle,


Where is const variable stored?

1 Answers  


What is means by DLL file means ? What is the use of DLL file? What are the contents of DLL file?

4 Answers  


What is the default size of set in java?

1 Answers  


What is file in java?

1 Answers  


I want to know the host name and provider name for tcs web mail

5 Answers   RSG, TCS,


What is r in java?

1 Answers  


Categories