Question
The difference between abstract class and interface in Java?

Answers

There are multiple differences between abstract class and interface in Java, but the most important one is Java's restriction on allowing a class to extend just one class but allows it to implement multiple interfaces. An abstract class is good to define default behavior for a family of class, but the interface is good to define Type which is later used to leverage Polymorphism. Please check the answer for a more thorough discussion of this question.   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 do you show timezone in formatted date in Java?
  • Q What place was nicknamed "The Pearl of the Orient"
  • Q What are secondary index's?
  • Q I've tried everything on the page and it still doesnt connect. I get messages like "cannot connect to host computer", "parallel cable disconnected"
  • Q How To Get All the Values Out of an Array?
  • Q Let us say your central sld integrated with lmdb doesn’t meet the version of sap netweaver, how can you handle this?
  • Q How many of the following words can be made from the letters in the word "LARGEST," using any letter any number of times?"greal, stagger, grasses, trestle, struggle, rattle, garage, strangle"
  • Q What is the difference between the 'All perils' and 'Specified perils' coverage in home insurance coverage?
  • Q My query does not return the column name that i expect. Is this a bug?
  • Q Sun light reaches earth in how many minutes?
  • Q What is primary cost and secondary cost?