If you are implementing an interface with your class, you get an additional advantage of defining the methods inside it depending on your requirement from the beginning where in abstract class which is extended with defined classes will never let you override their behavior and you have to use the top level behavior of those methods.
On Mon, Feb 21, 2011 at 4:30 PM, vivek hari <vivh...@gmail.com> wrote: > Hi, > > I was asked this question, Can anyone help me out. > > *What is the main purpose/significance of interfaces in java other than > Multiple inheritance,* > *more than an abstract class can do ?* > > > > Regards > Vivek > > -- > To post to this group, send email to > javaprogrammingwithpassion@googlegroups.com > To unsubscribe from this group, send email to > javaprogrammingwithpassion+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/javaprogrammingwithpassion?hl=en -- Warm Regards Pranava S Balugari "Stand up,be bold,be strong.Take the whole responsibility on Your own shoulders and know that You are the creator of Your own destiny" -- To post to this group, send email to javaprogrammingwithpassion@googlegroups.com To unsubscribe from this group, send email to javaprogrammingwithpassion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en