What are access modifiers in Java ?

Answer Posted / ravikiran(aptech mumbai)

Access modifiers species the scope of the access of a
particular variable or method
1).public
2).protected
3).private
4).default

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the protected field modifier?

593


How do I get the | symbol on my keyboard?

595


What are the advantages of encapsulation in java?

551


What is vector?

589


Can static methods access instance variables in java?

574






How do you use parseint in java?

511


Explain enumeration in java?

567


What are reference variables in java?

596


What is the difference between jvm and jre? What is an interface?

553


What do you mean by singleton class in java?

514


What are recursive functions?

575


How many bytes is a string in java?

535


What is the default size of set in java?

502


What modifiers are allowed for methods in an interface?

648


What are the types of strings?

563