You are passing arguments 1 2 to the following program:
Java:
public static void main(String[] args) {
System.out.println(args[0] + args[1]);
}
Kotlin:
fun main(args: Array<String>) {
print(args[0] + args[1])
}
What would be the output?
You are passing arguments 1 2 to the following program:
Java:
public static void main(String[] args) {
System.out.println(args[0] + args[1]);
}
Kotlin:
fun main(args: Array<String>) {
print(args[0] + args[1])
}
What would be the output?
Create a free account to access the full topic