Kotlin Basics

Kotlin Basics The Ultimate Beginner's Guide to Learn Kotlin Programming Step by Step

Paperback (16 Aug 2019)

Not available for sale

Includes delivery to the United States

Out of stock

This service is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Publisher's Synopsis

kotlin basicsKotlin is a new open source programming language like Java, JavaScript, etc . It is a highlevel strongly statically typed language that combines functional and technical part in asame place. Currently, Kotlin targets Java and JavaScript. It runs on JVM.Kotlin is influenced by other programming languages such as Java, Scala, Groovy, Gosu, etc . The syntax of Kotlin may not be exactly similar to JAVA, however, internally Kotlin isreliant on the existing Java Class library to produce wonderful results for the programmers .Kotlin provides interoperability, code safety, and clarity to the developers around theworld. StringBuilder sb = new StringBuilder();in Kotlin becomesval sb = StringBuilder()You can see that functions are defined with the fun keyword, and that semicolons are now optional when newlines are present. The val keyword declares a read-only property or local variable. Similarly, the var keyword declares a mutable property or local variable.Nevertheless, Kotlin is strongly typed. The val and var keywords can be used only when the type can be inferred. Otherwise you need to declare the type. Type inference seems to be improving with each release of Kotlin.Have a look at the function declaration near the top of both panes. The return type in Java precedes the prototype, but in Kotlin it succeeds the prototype, demarcated with a colon as in Pascal

Book information

ISBN: 9781686750861
Publisher: Independently Published
Imprint: Independently Published
Pub date:
Language: English
Number of pages: 280
Weight: 413g
Height: 229mm
Width: 152mm
Spine width: 16mm