Q. What will be the output of the following Java code?
Code:class output
{
public static void main(String args[])
{
char ch;
ch = "hello".charAt(1);
System.out.println(ch);
}
}
β
Correct Answer: (B)
e