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
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
How can u increase the heap size in the memory?
Difference between arraylist and hashset in java?
What are classloaders?
Is binary a low level language?
Can we nested try statements in java?
Why is singleton class used?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Can we have any code between try and catch blocks?
What is tcp ip in java?
Compare Mutex and Semaphore in java.
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.
What is balanced tree in java?
If you are given the name of the function at run time how will you invoke the function?
Enlist diffrent types of inheritance supported by java?