Explain access modifiers in java.
Answer / Shashank Srivastava
Access Modifiers in Java control the visibility and accessibility of classes, methods, variables, and constructors. They include public (visible everywhere), protected (within package and subclasses), default (only within the same package), and private (only within the class).
| Is This Answer Correct ? | 0 Yes | 0 No |
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What is the difference between this() and super() in java?
What does it mean that a class or member is final?
What are constants?
What are integer overflows and underflows and how to handle them?
Variable of the boolean type is automatically initialized as?
What is ascii format?
Difference between String & StringBuffer
16 Answers IBM, Infosys, Tech Mahindra, Wipro,
Explain oops concepts in detail?
Are floats faster than doubles?
What are mutable classes?
Can you extend main method in java?