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

What is an infinite loop?

555


Implementations of set interface?

573


What are the 6 mandatory procedures for iso 9001?

535


What is the purpose of main function in java?

543


Which variables are stored in stack?

454






What is a native method in java programming?

536


Can we convert stringbuffer to string?

570


What are inbuilt functions?

575


Explain how to force the garbage collection in java.

541


Why java is platform independent? Explain.

607


describe method overloading

545


What is the symbol for space?

569


What is the use of runnable interface?

625


What is the purpose of garbage collection in java?

667


Explain scope or life time of local variables in java?

571