adplus-dvertising
frame-decoration

Question

What is the default value of byte, short, int or long data type elements of an array in Java?

a.

-1

b.

1

c.

0

d.

Garbage value

Posted under Java Programming

Answer: (c).0

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 byte, short, int or long data type elements of an array in Java?