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 diffrences between interface and abstract
class?

Answers were Sorted based on User's Feedback



what are the diffrences between interface and abstract class?..

Answer / cool

=>Abstract class means
1)We can have concreate methods and abstrat methods
2) We can give implementation for concreate methods.

Interfaces means
1)we could not have concreate methods.All the methods are
abstract methods implicitly.
2)And those methods allows only public access specifier
only.It wont
allow any final,static keywords with methods .

Is This Answer Correct ?    2 Yes 0 No

what are the diffrences between interface and abstract class?..

Answer / cool

=>Interface :
1. All the methods in the interface are abstract.
2. We can achieve multiple inheritance through interface.
3. All the methods in the interface should be without
Access modifier. Implicitly public.
Abstract class:
1. Abstract class may contain abstract method and non-
abstract method.
2. We can achieve only single inheritance and multi-level
inheritance.
3. Abstract methods have Access modifiers.

Is This Answer Correct ?    1 Yes 0 No

what are the diffrences between interface and abstract class?..

Answer / ravikiran

interface is a purely abstract one when we wish to
implement all the methods for different scenarios in
different places we make use of implementation of the
interface.
abstract class is the one which contains both abstract as
well as non abstarct methods,We will define this if you
want ot restrict the instantiation of the class.

Is This Answer Correct ?    0 Yes 0 No

what are the diffrences between interface and abstract class?..

Answer / varsha vilas kalebag

interface is form by many interface but class can extend
only one another class
interface are very slow they require some time for
prcoessing method & class are fast

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

what is the diffrences between platform independent and portable

5 Answers   TCS,


Is Java Platform Independent if then how?

5 Answers  


What is the difference between inheritance and encapsulation?

0 Answers  


Is null an object in java?

0 Answers  


What is the largest data type in java?

0 Answers  


Why hashset is used in java?

0 Answers  


What is object cloning in Java?

0 Answers   SwanSoft Technologies,


what is enumset?

0 Answers  


What is the use of an interface?

3 Answers  


Why java is made?

0 Answers  


What is an inner class in java?

0 Answers  


What does string [] args mean?

0 Answers  


Categories