Interface can also used to model common features like Abstract, but it used for a weak is-a relationship, also known as an is-kind-of relationship, indicates that an object possesses a certain property. Abstract can be used to describe a strong is-a relationship.
Interface has no contructor, variables, and concrete methods. It only contains constants and abstract methods. This is also point that interface differs from the Abstract class.
Interface may empty, referred to as a marker interface. It contains no constants or methods, used to denote that a class posses certain desirable properties. A class may implement several interface to circumvent the single-inheritance restriction in java.
Wednesday, 5 September 2007
Subscribe to:
Post Comments (Atom)
Can Jackson Deserialize Java Time ZonedDateTime
Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...
-
The strictfp keyword is used to force the precision of floating point calculations (float or double) in Java conform to IEEE’s 754 standard...
-
As the name implies, an anonymous inner class isn’t defined using an explicit name. An anonymous inner class is created when you combine ins...
-
In construction. Spring test annotations: @SpringBooTest @DataJpaTest @TestPropertySource @ActiveProfiles @Sql @SpringBootTest It is used f...
No comments:
Post a Comment