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

I have a class which is abstract which contains only the
abstract methods. This is similar to an interface. Then, if
i have given a choice to choose one of them. Which one i
have to choose and why?

Answer Posted / ashoka

Better to choose Abstract class. Because it contains not
only the abstract methods but also implemented methods but
in interfaces only unimplemented methods will be there and
all final variables will be there.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between this() and super() in java ?

1139


What is difference between calling start() and run() method of thread?

1210


How do you compare arrays in java?

999


What is string example?

1112


What do you mean by Hash Map and Hash Table?

1143


What is the vector class in java programming?

1140


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1159


Why java does not support pointers?

1091


Can a class be private in java?

1039


What is formatted output?

1018


What is difference between equals and hashcode method?

1203


State some advantages of java?

1284


What does provide mean construction?

1156


Explain reverse a linked list iterative solution in java?

964


Why is a singleton bad?

1006