Methods in the stack trace

Report a typo

How many methods will be mentioned in the stack trace message if you run this code?

fun main() {
    val demoArray = intArrayOf(0, 1, 2, 3, 4, 5)
    demo(demoArray)
}

fun demo(input: IntArray) {
    println(input[10])
}
Enter a number
___

Create a free account to access the full topic