What is the diff. b/w Interfaces & Abstract class?

Answer Posted / supriyo pal

There are three main differences between an interface and an abstract class:
• At the same time multiple interfaces can be implemented, but only extend one class
• an abstract class may have some method implementation (non-abstract methods, constructors, instance initializers and instance variables) and non-public members
• abstract classes may or may not be a little bit faster

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

599


How can u increase the heap size in the memory?

558


Difference between arraylist and hashset in java?

547


What are classloaders?

601


Is binary a low level language?

519






Can we nested try statements in java?

632


Why is singleton class used?

529


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

511


Can we have any code between try and catch blocks?

563


What is tcp ip in java?

592


Compare Mutex and Semaphore in java.

562


there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.

1578


What is balanced tree in java?

536


If you are given the name of the function at run time how will you invoke the function?

690


Enlist diffrent types of inheritance supported by java?

489