What is private protected in java?



What is private protected in java?..

Answer / Kumar Alok Ranjan

"Private protected access modifier in Java combines the features of both private and protected access modifiers. It allows subclasses within the same package to access the method or variable, while it restricts other classes outside the package."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

can java object be locked down for exclusive use by a given thread? : Java thread

1 Answers  


what is predefined function in java?

1 Answers  


how can be object class inherited to all class in a program when java does not support multiple inheritance??

4 Answers  


What is the transient keyword?

5 Answers  


how to get the max salary and name of employee from arraylist without using the Comperator or even Comparable interface?

2 Answers  


Explain scope or life time of local variables in java?

1 Answers  


What is the difference between assignment and initialization?

1 Answers  


What is a parameter in simple terms?

1 Answers  


What are the OOPS concepts in Java ?

4 Answers   Satyam,


Can vector have duplicates in java?

1 Answers  


what is the need of the Ajax?

5 Answers   iFlex,


How the elements are organized in CardLayout?

5 Answers  


Categories