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

Why there are some null interface in java? What does it mean?

1085


How does a for loop work java?

1005


How do you sort data in java?

913


How does hashmap work in java ?

998


What is an interoperable application in java ?

967


What is the difference between C++ and Java and your preferences?

1084


What does yield method of the thread class do?

990


What is size of int in java?

1019


What is ternary operator? Give an example.

1044


Why is core java important?

1011


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

926


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

2084


Which is bigger float or double?

930


Where is the singleton class used?

1003


Give few examples of final classes defined in Java API?

1152