0% found this document useful (0 votes)
22 views21 pages

Android Developement Presentation

Mastering Android Development: Unleash the Power of Mobile Innovation

Uploaded by

yerkotalmi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views21 pages

Android Developement Presentation

Mastering Android Development: Unleash the Power of Mobile Innovation

Uploaded by

yerkotalmi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 21

AJAY KUMAR GARG ENGINEERING COLLEGE

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

 Features of kotlin programming language

 Why to Choose Kotlin Over Java

 Conclusion
INTRODUCTION

1. Kotlin is a statically typed programming language for modern


multiplatform Applications.

2. Developed by jetBrains which has 20% faster compiler & better


multi platform projects support.

3. Kotlin is new programming language that runs on JVM(Java Virtual Mac


& can be compile to JavaScript source code.
INTRODUCTION

4. Its support object oriented programming and functional


programming feature.

5. It is fully supported programming language on Android : Android


3.0
Beta version .
HISTORY…

 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.

Kotlin v1.0 was released on feb 15, 2016.

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

 The team behind it is JetBrains, creators of IntelliJ which is android


based on . Also has some contribution from James Strachan- creator
of Groovy.
 Significantly more concise and readable than Java, which means
it’s easier to maintain
Features of kotlin programming
language
Features of kotlin programming language

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

✔print(“sum of $x and $y is ${x + y }”)// sum of 4 and 7 is 11


3. Type Inference
The compiler figure out the type of an expression from the information in the
expression.
A simple ”VAL” is an easy case for the compiler because the type is clear from the
right-
hand side. This mechanism is called type inference. This reduce boilerplate code
4. Smart cast
In Kotlin Programming language – the Kotlin compiler tracks your logic and
auto-casts
types if possible, which means no more instance of checks followed by
explicit casts.

5. ✔if (obj is String){


Intuitive Equals
✔print(obj.toUpperCase())}
You can stop calling equals()//explicitly,
obj is nowbecause
known to be==
the a string
operator now checks for
structural
equality.
✔val john1 = Person(“john”)
✔val john2 = Person(“john”)

✔john1 == john2 // true (structural equality)


✔john1 == john2 // false (referential equality)
6. Default Arguments
No need to define several similar methods with varying arguments.

✔fun build(title: String, width: Int = 800, height: Int = 600){

✔Frame(title, width , height)}


CONCLUSION

 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

You might also like