Explain the difference between Kotlin and Java, particularly regarding null safety and coroutines in Samsung Electronics Android development.