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...

If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?

Answer Posted / ashok kumar

Methods in the abstract class can be accessed only through
a class hierarchy i.e through inheritance.

But methods in the interface can be accessed anywhere i.e
across the class hierarchy.(without inheritance).

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use nextline in java?

901


What is meant by distributed application? Why are we using that in our application?

910


What is the default value of local and global variables?

1041


Why string is immutable with example?

907


Which is faster call by value or call by reference?

865


What is the difference between reader/writer and inputstream/output stream?

1027


Explain creating threads by extending thread class ?

1009


I want to print “hello” even before main is executed. How will you acheive that?

1047


Is an integer an object?

902


Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?

1542


What are some examples of variable costs?

893


What are the important methods of java exception class?

1025


How objects are stored in java?

983


What do you mean by local variable and instance variable?

896


Can we catch more than one exception in single catch block?

993