What is Array in Java?

Ads

 
 

Share on Google+Share on Google+

Java Coder
What is Array in Java?
1 Answer(s)      4 months and 2 days ago
Posted in : Java Beginners

Hi,

What is Array in Java?

How to create an array in Java and use it?

Thanks

Ads
View Answers

April 16, 2017 at 7:36 PM


Hi,

Array is very important in Java as it is used heavily in programming.

Array is Java is a container object for holding a fixed number of values of a type.

For example you can create an array of integers and then hold the integer there.

Following program creates an array of integers:

int num[] = {50,20,45,82,25,63};

Check more examples at Array Example - Array in Java.

Thanks


Ads









Related Tutorials/Questions & Answers:
Advertisements