| What is the output for below Java string charAt keyword?
Choose the correct option from below list
(1)Convert “Z” to int 90 and prints “90”
(2)Runtime Exception
(3)Prints “z”
(4)Prints “Z”
Answer:-(2)Runtime Exception
Note:-As length will return 16 and charAt will not found any thing on 16 as index starts from 0. | | |