What are access modifiers in Java ?

Answer Posted / surendrareddy

The access specifiers in java are
1.public
2.private
3.protected these are control access specifiers in java

The another one is "Default" it will available when we will
not mention above 3 access specifiers before the class variable

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if u open login & logout ,how can udisplay the timelogin & logout members ?

1848


Explain about field hiding in java?

616


Can vector have duplicates in java?

595


How to add menushortcut to menu item?

648


When will we prefer to use set and list in java and why?

621






What type of value does sizeof return?

634


What is a get method?

634


What are the important features of Java 9 release?

627


What is the default access specifier for variables and methods of a class?

669


What is byte code and why is it important to java’s use for internet programming?

678


What is the destroy method?

679


What is difference between array and arraylist in java?

544


What is numeric data type?

622


Why are variables important in research?

639


How can you read an integer value from the keyword when the application is runtime in java? example?

711