Question
What’s the difference between an Abstract Class and Interface in Java?

Answers

The primary difference between an abstract class and interface is that an interface can only possess declaration of public static methods with no concrete implementation while an abstract class can have members with any access specifiers (public, private etc) with or without concrete implementation.
Another key difference in the use of abstract classes and interfaces is that a class which implements an interface must implement all the methods of the interface while a class which inherits from an abstract class doesn’t require implementation of all the methods of its super class.
A class can implement multiple interfaces but it can extend only one abstract class.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q How To Remove the Top White Space of Your Web Page?
  • Q India's first Wi-Fi enabled Railway station?
  • Q Streamlike movements of ocean water far below the surface that are not affected by wind or the Corolis effect is called?
  • Q Properties of a good unit test and Unit Testing Checklists
  • Q Pushkar fair happens in the state of__.
  • Q Sachin Tendulkar will be awarded one of the six grades of membership in the Order of Australia. He is second Indian to receive this honour. The first one is a legal luminiary. Who?
  • Q 'Cannot Load IDAPI Service Library' error. What does this error mean?
  • Q Water has maximum density at ______ degree Celsius:
  • Q What are different task types?
  • Q Which element in main component of hemoglobin?
  • Q Who wrote Servants of the Wankh in 1969