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 ...
-
In construction. Spring test annotations: @SpringBooTest @DataJpaTest @TestPropertySource @ActiveProfiles @Sql @SpringBootTest It is used f...
-
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...
No comments:
Post a Comment