Java Programming
Accenture PrimermediumJava Programming05 Regular Expression

Observe the below code : String course="Java Programming"; char c=course.charAt(16); System.out.println(c); What will be the output for the above code snippet?

Answer options

A
charAt(16); System.out.println(c); What will be the output for the above code snippet?
B
g
C
Compilation error
D
ArrayIndexOutOfBoundsException

Correct answer: g

Explanation

Correct answer: g.

Related Accenture Java Programming questions

Practice more Accenture Java Programming questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.