when to use abstract class and when to use interface?

Answer Posted / ram

Abstract class is used when and what methods are used
exactly while in interface,the methods are defined for
future use.

Is This Answer Correct ?    7 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between null and void?

523


What are parameters in a method?

581


Explain the difference between collection api and stream api in java8?

501


Who is the owner of java?

533


What is singleton class example?

582






What is the difference between applet and application?

540


What are different types of inner classes ?

549


What is module in oop?

561


Explain 5 features introduced in jdk 1.7?

603


What is meant by interface?

559


Give me some null interfaces in java?

598


What is the difference between the final method and abstract method?

536


Explain runtime exceptions?

731


What are keywords and reserved words in java?

549


What class of exceptions are generated by the java run-time system?

624