<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bharathi Kasi on Medium]]></title>
        <description><![CDATA[Stories by Bharathi Kasi on Medium]]></description>
        <link>https://medium.com/@bharathi.kasi06?source=rss-8cfea8869be0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gmyWpCzRQ_1gTOcs6hjL1w.jpeg</url>
            <title>Stories by Bharathi Kasi on Medium</title>
            <link>https://medium.com/@bharathi.kasi06?source=rss-8cfea8869be0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 04:39:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bharathi.kasi06/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Basics of Kotlin]]></title>
            <link>https://medium.com/@bharathi.kasi06/basics-of-kotlin-d508ae414244?source=rss-8cfea8869be0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d508ae414244</guid>
            <category><![CDATA[history-of-kotlin]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[feature-of-kotlin]]></category>
            <dc:creator><![CDATA[Bharathi Kasi]]></dc:creator>
            <pubDate>Thu, 18 Apr 2024 03:49:15 GMT</pubDate>
            <atom:updated>2024-04-18T03:52:04.098Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>‘’Don’t stop learning because the universe will never stop to teach you.’’</strong></p><p>In this blog, you will learn about the basics of Kotlin and it’s features.</p><p><strong><em>History of Kotlin</em></strong> — It was developed by JetBrains. It started developing in the year of 2010. Then they officially released in the year of 2016. Later they officially announced Kotlin is the official language to develop Android applications on Nov-28, 2017.</p><p><strong><em>what is Kotlin?</em></strong></p><p>It is a <strong>general-purpose, statically typed and open-source programming language</strong>. It runs on JVM(Java Virtual Machine) so, which means where Java can be used there Kotlin also can be used.</p><p>Let’s discuss this in depth,</p><p><strong>General Purpose</strong> — It means this language could be used for multiple domains for eg: mobile app development, server-side, etc.</p><p><strong>Statically Typed</strong> — In Kotlin or Java, if we are declaring a variable then we should mention the data type also! else it will show the compilation error.</p><p>Eg: In <strong>java,</strong> we will declare a variable like this <strong>int a;</strong></p><p>In <strong>Kotlin</strong> we will be declaring a variable like this <strong>val a: Int</strong></p><p>So, before running the program the compiler will show the error if we missed adding the data type to any declared variable.</p><p><strong>Open Source Programming</strong> — This means it is open to anyone and they can view or (modify /refactor ) and they can publish their version of code.</p><p>Now let’s move to the <strong>features of Kotlin</strong></p><p>It has many features, but let’s discuss mostly used features</p><ol><li><strong>Concise</strong> — In Java, if we want to create a POJO class then we should add the setter and getter for each property and it creates a lot of boilerplate code for us. But in Kotlin, we have something called a Data class that does the same as what the POJO class does but we don’t need to create the setter and getter methods for the properties.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BQrkbflwWQR00ksmmVXgJA.png" /></figure><p>2. <strong>Null Safety</strong> — Kotlin is a null safety language. When we are declaring a variable with a null type, then we should check if it’s null or not with the keyword <strong>?. </strong>else the compiler will show.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FzXmVvo5oVRRrRNSvUYc-g.png" /></figure><p>3. <strong>Interoperability</strong> — In Kotlin we can easily call the Java class or function from the Kotlin class and vice versa.</p><p>4. <strong>Extension Function</strong> — In Kotlin, we can create our custom function for any class with extension function support.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcjDrUYi4dMgbQ31Lw0rMA.png" /></figure><p><strong>5. Smart Cast</strong> — In Kotlin after checking it’s type we don’t need to convert a variable or property to the specific type. The Compiler will do it automatically for us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*TqdhAbcWnB2P8PK0AeTYkQ.png" /></figure><p>After successfully the type we can access all the functions which is available for the specific type.</p><p><strong>6. Compilation Time</strong> — Kotlin has better performance and reduces the compilation time by removing the <strong>boilerplate code</strong>, supports the <strong>extension function </strong>and <strong>auto smart cast support</strong> and also achieves <strong>Interoperability.</strong></p><p><strong>7. Tool Friendly</strong> — It can be built using a command line and also any Java IDE.</p><p>I hope you understood very well and your confidence has improved by at least 1 per cent. Thanks for your patience.</p><p><strong>Now I have two questions for you</strong></p><ol><li>What is dynamically typed language?</li><li>Why do we need to go Kotlin to develop the Android application over Java?</li></ol><p>Please comment on your feedback and also answers to those two questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d508ae414244" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>