In general, Kotlin is an upgraded Java
Kotlin has no primitive types; only the Objects(wrapper classes in java)
Kotlin has no semi-coma, and keyword new,
Kotlin has no checked exceptions; so there is no forced catch.
Kotlin may have a single primary constructor defined at the class header.
By default, all classes defined are immutable, equal to final classes in Java; so it needs an open modifier to make it extendable.
Kotlin has no checked exception, all exceptions are derived from the throw-able.
Kotlin function can be independent of a class; by default, it is a static method, it must be a static method, for doesn't belong to any class. A function can be modified access modifiers. A private function means it can be only accessed within its file scope.
return Unit
Friday, 27 September 2019
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