when to use abstract class and when to use interface?
Answer Posted / brijendra kumar soni(xavient)
1-By using Interface we can achieve the Multiple
inheritence while by using abstract class we can not
achieve.
2-Abstract Class extended by a class only while Interface
implmented by a class and extended to one or more
interfaces.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the five major types of reference sources?
What is a Presistent Object?
Are registers volatile?
What is javac_g?
Explain the overview of UDP messaging.
What is a constructor overloading in java?
Explain the term virtual machine?
What is difference between iterator and enumeration in java?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
What is final class?
What is keyword in oop?
What are kinds of processors?
Why singleton class is used in java?
How to perform selection sort in java?
Can a singleton class be inherited?