Leave a Reply 4

Your email address will not be published. Required fields are marked *


Lukas

Lukas

I’d say E

args[0] is “Wow”
and args[1] is “Mom”

renko

renko

Code question:
public class Palindrome {

public static void main(String[] args) {
System.out.println(args[1]);
return 0;
}
}

Arguments: Wow Mom

Output:
Mom
Exception in thread “main” java.lang.RuntimeException: Uncompilable source code – incompatible types: unexpected return value
at Palindrome.main(Palindrome.java:5)
/home/renko/.cache/netbeans/8.1/executor-snippets/run.xml:53: Java returned: 1