Kotlin - Basics and JVM Runtime
Why does
println add a new line after printing, but print does not in Kotlin?println add a new line after printing, but print does not in Kotlin?println automatically appends a newline character after printing, moving the cursor to the next line.print does not add a newline; it prints text as is. It is not deprecated, uses the same output stream, and works with all data types.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions