<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kotlin lang</title>
    <description>The latest articles on DEV Community by Kotlin lang (@klang).</description>
    <link>https://dev.to/klang</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F805003%2F563b945a-62e9-48ee-8c5f-74b987255591.jpeg</url>
      <title>DEV Community: Kotlin lang</title>
      <link>https://dev.to/klang</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/klang"/>
    <language>en</language>
    <item>
      <title>Kotlin Tutorial [Beginners - Advance]</title>
      <dc:creator>Kotlin lang</dc:creator>
      <pubDate>Fri, 28 Jan 2022 05:34:53 +0000</pubDate>
      <link>https://dev.to/klang/kotlin-tutorial-beginners-advance-2jc8</link>
      <guid>https://dev.to/klang/kotlin-tutorial-beginners-advance-2jc8</guid>
      <description>&lt;h1 id="what-is-kotlin"&gt;&lt;strong&gt;What is Kotlin?&lt;/strong&gt;&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Kotlin Tutorial&lt;/strong&gt;: Kotlin is an open-source statically typed programming language that runs on Java Virtual Machine (JVM). It combines Object Oriented Programming (OOPs) and functional programming in unrestricted, self-sufficient, and distinctive platforms. It also allows the twinning of functionalities by miniature codes. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kotlin&lt;/strong&gt; is a statically-typed programming language, developed by JetBrains. If you have basic knowledge of Java, you will be able to learn Kotlin in no time. This &lt;strong&gt;Kotlin tutorial&lt;/strong&gt; is designed for beginners so you would be able to understand Kotlin programming even if you have no knowledge of Java.&lt;/p&gt;

&lt;p&gt;Kotlin and Java are interoperable which means you can use them together in a Project as well as you can re-write a Java code in Kotlin efficiently. The syntax of Kotlin is concise than Java. In this tutorial you will learn why use Kotlin, what are the advantages of it and several guides on the various topics of Kotlin.&lt;/p&gt;

&lt;h2 id="history-of-kotlin"&gt;&lt;strong&gt;History of Kotlin&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;Here, are important landmarks from the history of Kotlin:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;th&gt;Year&lt;/th&gt;
&lt;th&gt;Event&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2016&lt;/td&gt;
&lt;td&gt;Kotlin v1.0 was launched&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2017&lt;/td&gt;
&lt;td&gt;Announcement of Google on the first-class support of kotlin in android&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2018&lt;/td&gt;
&lt;td&gt;Kotlin v1.2 comes with add on distributing codes between JVM and JavaScript&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2019&lt;/td&gt;
&lt;td&gt;Google announced Kotlin as its preferred programming language for Android Application Developers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2021&lt;/td&gt;
&lt;td&gt;On September 20, 2021, Kotlin v1.5.31 was launched.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;

&lt;h2 id="features-of-kotlin"&gt;&lt;strong&gt;Features of Kotlin&lt;/strong&gt;&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Concise:&lt;/strong&gt; Kotlin is concise than Java, you would need to write approx 40% less lines of code compared to Java.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Interoperability:&lt;/strong&gt; Kotlin is highly interoperable with Java. You would not face any difficulty using Kotlin in a Java project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open Source:&lt;/strong&gt; Kotlin is a open source programming language.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trust:&lt;/strong&gt; You can trust kotlin as this is developed by popular and well known company JetBrains. JetBrains is known for creating several development tools. The popular Java IDE IntelliJ IDEA is developed by this same company.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Feature-rich:&lt;/strong&gt; Kotlin provides several advanced features such as Operator overloading, Lambda expressions, string templates etc.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Easy:&lt;/strong&gt; Kotlin is easy to learn programming language. If you have came from a Java background, you would find it easy to learn Kotlin.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Less error prone:&lt;/strong&gt; As I mentioned in the beginning, Kotlin is a statically-typed programming language, which makes you able to catch errors at compile-time as Statically typed programming languages do type checking at compile-time. &lt;/p&gt;

&lt;h2 id="reasons-of-of-using-kotlin"&gt;Reasons of of using Kotlin&lt;/h2&gt;

&lt;p&gt;Here, are some important reasons why Kotlin is used widely:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Kotlin is a statically-typed language which is very easy to read and write.&lt;/li&gt;
&lt;li&gt;Kotlin programs do not require semicolons in their program. This makes the code easy and more readable.&lt;/li&gt;
&lt;li&gt;This languare allows exchange and use of information from Java in various ways. Moreover, Java and Kotlin code can co-exist in the same project.&lt;/li&gt;
&lt;li&gt;Kotlin’s type system is aimed to eliminate NullPointerException from the code.&lt;/li&gt;
&lt;li&gt;It’ll take you less time to write new code in Kotlin. It’s even easier to deploy kotlin code and to maintain it at scale.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id="kotlin-tutorials"&gt;&lt;strong&gt;Kotlin Tutorials&lt;/strong&gt;&lt;/h1&gt;

&lt;p&gt;Go through these tutorials in the given sequence for better understanding of kotlin programming language.&lt;/p&gt;

&lt;h2 id="getting-started"&gt;&lt;strong&gt;Getting Started &lt;/strong&gt;&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotilin-introduction/" rel="bookmark"&gt;Kotlin - Introduction&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-hello-world/" rel="bookmark"&gt;Kotlin Hello World – Your First Kotlin Program&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-program-to-add-two-numbers/" rel="bookmark"&gt;
Kotlin Program to add two numbers&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;


&lt;/ul&gt;

&lt;h2 id="kotlin-basics"&gt;&lt;strong&gt;Kotlin Basics &lt;/strong&gt;&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-comments/" rel="bookmark"&gt;Kotlin - Comments&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-keywords/" rel="bookmark"&gt;Kotlin - Keywords&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-variable/" rel="bookmark"&gt;Kotlin - Variable&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-operators/" rel="bookmark"&gt;Kotlin – Operators&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-data-type/" rel="bookmark"&gt;
Kotlin - Data Type&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-booleans/" rel="bookmark"&gt;Kotlin – Booleans&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-string/" rel="bookmark"&gt;Kotlin - String&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt; 
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-array/" rel="bookmark"&gt;Kotlin – Array&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-range/" rel="bookmark"&gt;Kotlin – Range&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-function/" rel="bookmark"&gt;Kotlin – Function&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id="kotlin-control-flow"&gt;&lt;strong&gt;Kotlin Control Flow &lt;/strong&gt;&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-if-else-expression/" rel="bookmark"&gt;Kotlin – if-else Expression&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-when-expression/" rel="bookmark"&gt;Kotlin – When Expression&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-for-loop/" rel="bookmark"&gt;
Kotlin – For Loop&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-while-loop/" rel="bookmark"&gt;Kotlin – While Loop&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-break-continue/" rel="bookmark"&gt;Kotlin – Break &amp;amp; Continue&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt; 


&lt;/ul&gt;

&lt;h2 id="kotlin-collection"&gt;&lt;strong&gt;Kotlin Collection &lt;/strong&gt;&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-set-interface/" rel="bookmark"&gt;Kotlin – Set interface&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-list-interface/" rel="bookmark"&gt;Kotlin – List Interface&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-map-interface/" rel="bookmark"&gt;
Kotlin – Map interface&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;

&lt;/ul&gt;

&lt;h2 id="kotlin-object-and-classes"&gt;&lt;strong&gt;Kotlin Object and Classes &lt;/strong&gt;&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-class-and-object/" rel="bookmark"&gt;Kotlin – Class and Object&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-constructor/" rel="bookmark"&gt;Kotlin – Constructor&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-inheritance/" rel="bookmark"&gt;
Kotlin – Inheritance&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-abstract-classes/" rel="bookmark"&gt;Kotlin – Abstract Classes&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="Kotlin%20-%20interface" rel="bookmark"&gt;Kotlin - Interface&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt; 
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-visibility-modifiers/" rel="bookmark"&gt;Kotlin – Visibility modifiers&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-extension/" rel="bookmark"&gt;Kotlin – Extension&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-data-class/" rel="bookmark"&gt;Kotlin – Data Class&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-sealed-class/" rel="bookmark"&gt;Kotlin – Sealed Class&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-generics/" rel="bookmark"&gt;Kotlin – Generics&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;a href="https://www.codelivly.com/kotlin-exception-handling/" rel="bookmark"&gt;Kotlin – Exception Handling&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;I hope you found what you were looking for from this tutorial. If you want more Kotlin tutorials like this, then do join our &lt;strong&gt;&lt;a href="https://t.me/codelivly" rel="noreferrer noopener"&gt;Telegram channel&lt;/a&gt;&lt;/strong&gt; for future updates.&lt;/p&gt;

&lt;p&gt;Thanks for reading, have a nice day 🙂&lt;/p&gt;

</description>
      <category>kotlin</category>
    </item>
  </channel>
</rss>
