Vidyalelo
Java Programming · Q82

Strings

Programming · Java Programming · question 82

Q82

What will be the output of the following Java code? class output public static void main(String args[]) char ch; ch = "hello".charAt(1); System.out.println(ch);

A.
h
B.
e
Answer
C.
l
D.
o

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board