A Comparative Study of Java and Kotlin for Android Mobile Application Development

Bambang Purnomosidi Dwi Putranto, Robertus Saptoto, Ovandry Chandra Jakaria, W. Andriyani
{"title":"A Comparative Study of Java and Kotlin for Android Mobile Application Development","authors":"Bambang Purnomosidi Dwi Putranto, Robertus Saptoto, Ovandry Chandra Jakaria, W. Andriyani","doi":"10.1109/isriti51436.2020.9315483","DOIUrl":null,"url":null,"abstract":"There are several programming languages that can be used to develop Android application, such as C++, Java, Kotlin, JavaScript, and many more. Each programming language certainly has some advantages and disadvantages in the development of Android application. Therefore, a comparison to see the values of those programming languages is needed. This research compared two popular programming languages for Android application development, namely Java and Kotlin. The testing was done by building two applications using Java and Kotlin that access data in a remote server. Our comparison includes source code evaluation, testing on the performance of the app performed on two devices, and testing on the data usage. From the test results, it was proved that Kotlin is superior in terms of more concise lines of code and less data usage which will reduce bugs substantially therefore will lead to faster development time. On the other hand, Java is superior in its compiling time (for first time build but on par with Kotlin for incremental build) and APK size albeit not significant. We also compare ecosystem and programming language constructs for both programming languages. Overall, for Android mobile application development, Java should be used if mobile application development priority is the APK size and compilation / build time while Kotlin should be used if mobile application development priority is lesser bugs, concise code, and faster development time.","PeriodicalId":325920,"journal":{"name":"2020 3rd International Seminar on Research of Information Technology and Intelligent Systems (ISRITI)","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2020-12-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 3rd International Seminar on Research of Information Technology and Intelligent Systems (ISRITI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/isriti51436.2020.9315483","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

There are several programming languages that can be used to develop Android application, such as C++, Java, Kotlin, JavaScript, and many more. Each programming language certainly has some advantages and disadvantages in the development of Android application. Therefore, a comparison to see the values of those programming languages is needed. This research compared two popular programming languages for Android application development, namely Java and Kotlin. The testing was done by building two applications using Java and Kotlin that access data in a remote server. Our comparison includes source code evaluation, testing on the performance of the app performed on two devices, and testing on the data usage. From the test results, it was proved that Kotlin is superior in terms of more concise lines of code and less data usage which will reduce bugs substantially therefore will lead to faster development time. On the other hand, Java is superior in its compiling time (for first time build but on par with Kotlin for incremental build) and APK size albeit not significant. We also compare ecosystem and programming language constructs for both programming languages. Overall, for Android mobile application development, Java should be used if mobile application development priority is the APK size and compilation / build time while Kotlin should be used if mobile application development priority is lesser bugs, concise code, and faster development time.
Java与Kotlin在Android移动应用开发中的比较研究
有几种编程语言可用于开发Android应用程序,如c++、Java、Kotlin、JavaScript等。在Android应用程序的开发中,每种编程语言都有其优缺点。因此,需要对这些编程语言的价值进行比较。本研究比较了两种流行的Android应用程序开发语言,即Java和Kotlin。测试是通过使用Java和Kotlin构建两个应用程序来完成的,这两个应用程序访问远程服务器中的数据。我们的比较包括源代码评估,在两个设备上执行的应用程序性能测试,以及数据使用测试。从测试结果来看,Kotlin在更简洁的代码行和更少的数据使用方面具有优势,这将大大减少bug,从而缩短开发时间。另一方面,Java在编译时间(对于第一次构建,但对于增量构建与Kotlin相当)和APK大小方面更优越,尽管不是很明显。我们还比较了两种编程语言的生态系统和编程语言结构。总的来说,对于Android移动应用程序开发,如果移动应用程序开发优先级是APK大小和编译/构建时间,则应该使用Java;如果移动应用程序开发优先级是bug更少、代码更简洁、开发时间更快,则应该使用Kotlin。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信