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 module in project?

514


What is the purpose of tostring() method in java?

549


Explain the importance of finally over return statement?

604


If goto and const is reserve words than why it is not work in java?

1504


How dead lock situation occurs in java and how you can identify it?

540






What is the covariant return type?

576


What is advantage of java?

538


Why we use protected in java?

530


How list contains works in java?

550


How does indexof work?

504


What do you mean by boolean?

573


Why are constructors used?

552


Is it possible to write a regular expression to check if string is a number?

538


What is hashset in java?

524


What is meant by anonymous class?

587