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 cr keyboard?

840


What is class??

977


What is a default constructor and also define copy contrucyor?

833


Is java hashset ordered?

791


Is arraylist a class in java?

725


What is number data type in java?

761


Can you access non static variable in static context?

760


Is integer passed by reference in java?

754


Why do we need data structure in java?

795


What is public static void main?

771


What is sleep method?

800


How do you achieve singleton?

718


How many arguments can a method have java?

774


How will you initialize an Applet?

820


What is an 8 bit word?

789