Kotlin vs Java or From Java To Kotlin Part 1

Kotlin vs Java or From Java To Kotlin

Kotlin vs Java syntax

In this article you will find Kotlin vs java code syntax. Kotlin is newly launched language and every want to know about it. Here we are covering basic point comparison between Kotlin and java.

For Android code syntax in Kotlin follow this tutorial Kotlin Android basic Fundaments

1. Creating Constants and Variables in

JAVA

Kotlin

2. Assigning null value in String

JAVA

Kotlin

3. Print Statements

JAVA

Kotlin

Its looks very clean and simple in kiting no extra syntax

4. Concatenation two strings

JAVA

Kotlin

5. Defining methods or Function

JAVA

Kotlin

6. Methods with Parameters

JAVA

Kotlin

 


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.