Interface Evolution (Java 7, Java 8, Java 9)

  • Default methods
  • Static methods
  • Constant variables
  • Abstract methods
  • Default methods
  • Static methods
  • Private methods
  • Private static methods
  • Abstract classes can have access specifiers for their methods and variables whereas an interface is always public and variables are always constant ie it cannot maintain any state information.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store