When we will use an Interface and Abstract class?

Answer Posted / basireddy

interface is used when we want all the methods implement
the methods differnetly in different situations.


Abstract class
We also use abstract classes to override the
abstract methods that it contains.Otherwise the child class
will mentioned as abstract.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of static class?

537


How to provide security in java

1798


How do I get a substring?

519


how to split string in java?

645


How many types of methods are there in java?

519






Explain about features of local inner class?

597


What are java threads?

612


What is difference between stringbuffer and string?

486


What is flush buffer?

510


What is a numeric string?

559


Write a code to create a trigger to call a stored procedure

528


Why java uses the concept of the string literal?

541


What are parameters in a method?

578


What is the difference between hashset and treeset in java?

533


What is the old name of java?

499