1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Interface and abstract class in java

Discussion in 'Java' started by hitesh123, Oct 22, 2011.

  1. hitesh123

    hitesh123 Banned

    Joined:
    Oct 20, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    seo executive
    Location:
    delhi
    in java Abstract class contain one or more abstract method which has to be implemented by sub classes. An abstract class can contain no abstract methods also i.e. abstract class may contain concrete methods. A Java Interface can contain only method declarations and public static final constants and doesn't contain their implementation. The classes which implement the Interface must provide the method definition for all the methods present.
     
  2. ManzZup

    ManzZup New Member

    Joined:
    May 9, 2009
    Messages:
    278
    Likes Received:
    43
    Trophy Points:
    0
    Occupation:
    Production Manager:Software @ ZONTEK
    Location:
    Sri Lanka
    Home Page:
    is this a question or a statement or both ? :S
     
  3. guptasandeep

    guptasandeep Banned

    Joined:
    Dec 3, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    This is the difference between the abstract classes and interfaces..
     

Share This Page