Google+ diff bw abstract and interface - SUN SPECIAL - JAVA, J2EE - ChetanaSforum

Jump to content


Photo

diff bw abstract and interface







  • Please log in to reply
4 replies to this topic

#1 srirag






Posted 04 August 2010 - 05:43 PM

- PLEASE SHARE

hi friends.i saw a java question in an interview questons collection.that is what s the difference between abstract class and an interface in java.I am a beginer.so i dono the answer if any one knows plz explain.


#2 Vadivel S

Vadivel S

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 04 August 2010 - 08:21 PM

hi friends.i saw a java question in an interview questons collection.that is what s the difference between abstract class and an interface in java.I am a beginer.so i dono the answer if any one knows plz explain.

Abstract class can have abstract methods as well as concrete methods. Interface must only have abstract methods

#3 Aniruddha Panadare

Aniruddha Panadare

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 12 May 2011 - 09:11 PM

interface:-
an Interface is a pure abstract class, the methods in an interface are by default abstract,and the variable are final variable i.e constants,we can implement any no of interface

abstract class :
abstract class can have abstract methods as well as non abstract methods

#4 Alice Coope

Alice Coope

    Advanced Member

  • Members
  • PipPipPip
  • 45 posts

Posted 18 May 2011 - 01:23 PM

hi friends.i saw a java question in an interview questons collection.that is what s the difference between abstract class and an interface in java.I am a beginer.so i dono the answer if any one knows plz explain.

I just came across this link in Google. Hope it might help you in this regard.

#5 Mr. Sumit kumar

Mr. Sumit kumar

    Member

  • Members
  • PipPip
  • 11 posts

Posted 28 March 2012 - 12:18 PM

The basic difference between java abstract class and interface is that the methods of java interface are utterly abstract which donít have implementations. Java abstract contains the instance methods which implements a default behavior. ____________ Asset Finance