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

What is the difference in between cpp and java? Can u explain in detail?

697


What is the static variable?

665


What are the 3 types of loops in java?

619


What is the base class in java from which all classes are derived?

609


What is map and hashmap in java?

694






What are the advantages of inner classes?

603


Can variables be used in java without initialization?

645


What is a boolean expression in java?

626


What do you understand by private, protected and public?

611


Can a string be null?

634


What is parameters example?

646


What is the final keyword?

640


What is constructor chaining and how is it achieved in java?

662


Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain

1548


What is the symbol for line break?

708