how many access specifiers are available in java

Answer Posted / ashish shinkar

there are 4 access specifier in java
1: private
2: default
3: protected
4: public

Is This Answer Correct ?    15 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a layout manager and what are different types of layout managers available in java awt?

946


Is string a class in java?

721


Explain polymorphism citing an example.

804


Objects or references which of them gets garbage collected?

720


How can we make a class virtual?

821


What are new features introduced with java 8 ?

737


What is high level language in computer?

752


Why for each loop is used?

742


What is the difference between hashmap and hashtable? What is an interface?

778


What is composition in java?

945


What is default constructors?

725


Is static a singleton?

737


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

901


Is set sorted in java?

700


What is the difference between multitasking and multithreading in Java

961