Friday, 27 September 2019

Kotlin

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






No comments:

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...