Given the following piece of code, what will be the output?
String str = "pizza and sandwich";
char c = str.charAt(8);
int n = str.length();
String otherstr = str.substring(0, 5);
System.out.println(c);
System.out.println(n);
System.out.println(otherstr);
n 18 pizza
d
18
pizza
d
18
pizza
d 18 pizza