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...
-
Could not extract response: no suitable HttpMessageConverter found for response type [class dk.enettet.evu.core.model.Address] and content ...
-
First time met this hibernate exception. I think this issue should due to one to one relationship. One driver has one car; one car has on...
-
A large object refers to the entity property that is modified by @Lob. It may be persisted in several records. However, in database manage...
No comments:
Post a Comment