Kotlin vs Java
I am glad now that programming languages are making our life easier and better.
So now officially we have Kotlin Programming language, that also works on JVM(java virtual machine) and of course, this language brought and will bring a big change in the programming world.
Its another advantage is that its code is in less number of lines than java, and of course if number of lines are less then there is less number of chances of the error. But congrats that it can handle errors at most.
For example if I have to write the code to print just "Coding world" in both languages then you may understand easily the change:
Kotlin code:
https://www.youtube.com/watch?v=Ho8gQvSLF9g&list=PL66b5WnW6VhtUT_gByRaGTo4NA3PVshKe
fun main(args: Array<String>){
println("Coding world")
}
Java code:
class Test
{
public static void main(String args[])
{
System.out.println("Coding world");//Big line for just printing
}
}
..........That's the beauty of Kotlin.
Again google also announce that for Android Development Kotlin will be the official language.
So lets discuss the more ideas.......................
So now officially we have Kotlin Programming language, that also works on JVM(java virtual machine) and of course, this language brought and will bring a big change in the programming world.
Its another advantage is that its code is in less number of lines than java, and of course if number of lines are less then there is less number of chances of the error. But congrats that it can handle errors at most.
For example if I have to write the code to print just "Coding world" in both languages then you may understand easily the change:
Kotlin code:
https://www.youtube.com/watch?v=Ho8gQvSLF9g&list=PL66b5WnW6VhtUT_gByRaGTo4NA3PVshKe
fun main(args: Array<String>){
println("Coding world")
}
Java code:
class Test
{
public static void main(String args[])
{
System.out.println("Coding world");//Big line for just printing
}
}
..........That's the beauty of Kotlin.
Again google also announce that for Android Development Kotlin will be the official language.
So lets discuss the more ideas.......................
Comments
Post a Comment
Let me know your doubts