Android Developement Presentation
Android Developement Presentation
PRESENTATION
ON
KOTLIN
Name : Prabal Srivastava
Roll No : 2000270120075
Year : Third
Semester : V
Section : CS-2
Branch : Computer Science Email ID : [email protected]
CONTENTS:
Introduction
History
Advantages of Kotlin
Conclusion
INTRODUCTION
In July 2011 JetBrains Start Project Kotlin, a new language for the
JVM, which has been under development for a year.
JetBrains hopes that the new language will drive intelliJ IDEA
sales.
In may 2017 Google I/O Declared as the first class language for
android development
ADVANTAGES OF KOTLIN
Modern statically typed , object oriented language that borrows many idea
from functional languages.
Fast learning curve – inspired by Scala and c#.
Meant to be used for building large software systems.
Engineered to be highly interoperable with java- you can use existing code
base without(may) problems.
ADVANTAGES OF KOTLIN
1.Concise
Kotlin is more concise & reduces the amount of boilerplate code. For example
we
create a POJO with getters, setters, equals(), hashCode(), toString() and
copy() in
single line.
✔data class Customer(val name: String, val email: String, val company:
String)
2.INTEROPERABLE
Kotlin is 100% interoperable with Java language. It means you can easily call
java
code From Kotlin & Kotlin code from Java.
✔val userClass = userInstance.javaClass //From an instance
3.OPEN SOURCE
It is an open source programming language in which source code is available
to
the general public for use. Kotlin has open access to source code as.
✔ Build tools –-Kotlin compiler.
✔Intellij IDEA plugin ---Kotlin’s native IDE.
4. NULL SAFETY
Avoid null pointer exception or null reference exception also known as The
Billion
Dollar Mistake.
✔var b: String? =“abc”
✔b = null// ok
Why to Choose Kotlin Over Java
1. Familiar Syntax
Kotlin is also designed to have learning curve for java developers. Java
develpers
should find that most of the kotlin syntax fells familiar ; for example, the
code that’s
used to create a new class in Kotlin is very similar to java.
✔class MainActivity : AppCompatActivity() {
2. String Interpolation
String template are a simple and effective way of embedding value, variables,
or even
expressions inside a string without the need for pattern replacement or string
concatenation. This is called string interpolation.
✔val x =4
✔val y =7
At last we can say that Kotlin is more expressive than the java and it also
have the less code for a task In which java takes more code .
So we can say that in future kotlin will come as java in server side as and
also in mobile application
With features like more declarative , less code , mixed language database
and more expressive than java .
Make Kotlin the future language for enterprise applications and mobile .
THANK YOU