Results 1 to 4 of 4
  1. #1
    mrark is offline Member
    Join Date
    Jun 2007
    Posts
    5
    Rep Power
    0

    Default difference between Abstract and interface

    what are abstract and interface?
    what are the difference between abstract and interface?

  2. #2
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    9

  3. #3
    saiuu is offline Member
    Join Date
    Nov 2009
    Posts
    1
    Rep Power
    0

    Question difference between Abstract and interface

    1) abstract class code is reusable ,this is not in the case of interface.
    2) in interface all the methods are by default abstract as well as public.
    3)we can have concrete methods also in abstract class,this is not valid in interface
    4)declared variables in interface by default public,static,final.this is not in the case of abstract class

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    saiuu, you're missing some of the benefits of interface, but most importantly, this thread is over 2 yrs old. Surely you wish to contribute to a more contemporary thread?

Similar Threads

  1. Replies: 6
    Last Post: 10-27-2008, 01:25 AM
  2. Interface Vs Abstract Class
    By javarishi in forum New To Java
    Replies: 5
    Last Post: 06-15-2008, 06:43 AM
  3. Replies: 0
    Last Post: 04-02-2008, 08:04 AM
  4. Difference between ASP and JSP
    By barney in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-07-2007, 08:15 AM
  5. difference between this and super
    By mrark in forum New To Java
    Replies: 1
    Last Post: 06-27-2007, 06:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •