File Exceptions:
The file extensions used by Java are.java (for source files),.class (for class files), and.jar (for archived files).
The file extensions used by Kotlin are. kt (for Kotlin source files), .kts (for Kotlin script files), and. Kt (for Kotlin module)
Whose code has the quality of Conciseness?
Code written in Java is a bit long while Kotlin offers a lot of conciseness and makes it easy to use.
Extension Functionality
To increase the functionality of an existing class in JAVA, we must build a new class and inherit its present class. Therefore, JAVA does not support extension functionality.
Kotlin, on the other hand, uses the extension function to add new functionality to a class.
Widening Conversion
Java allows implicit conversion, allowing us to increase the size of a smaller type.
The implicit conversion is not supported in Kotlin. Therefore, we are unable to change the smaller type to a larger one.