Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what are the different access specifiers that can be used
by interfaces and abstract classes? can anyone give me
detailed description on this

Answer Posted / vishal arora

This question leads to two things
1. modifier for abstract class or interface
2. modifier for members of abstarct class or interface

For first in abstract class and interface we can have
public , protected and default and not private if it is top
level otherwise private also if it is nested

for point 2
in an interface every member variable is public and final
in an abstract class you can assign any modifier to member
variables

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are static members inherited to sub classes?

1186


what is static import in java? Explain

1075


What is remote method invocation (rmi)?

1113


What is anti pattern in java?

1032


Can we have this () and super () together?

1096


What are peerless components in java programming?

1065


How do you write methodology?

1027


Where import statement is used in a java program?

1190


What are the basic concepts of OOPS in java?

1087


What are sets in java?

1001


Will minecraft java be discontinued?

1226


What are keywords and reserved words in java?

1115


Is singleton set an interval?

1019


Is hashmap thread safe?

1049


Describe string intern() methodology

1111