adplus-dvertising
frame-decoration

Question

What is the default value of a char data type elements of an array in Java?

a.

'A'

b.

'\0'

c.

null

d.

'\0' or null

Posted under Java Programming

Answer: (d).'\0' or null

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the default value of a char data type elements of an array in Java?