Answer to Question #212918 in Java | JSP | JSF for alphie

Question #212918

Briefly explain what an array is. As part of your answer make use of a labelled example to show the declaration and components of an array Note: You will receive 4 marks for your explanation and 6 marks for your labelled example.


1
Expert's answer
2021-07-03T04:46:57-0400

An array is a collection of elements stored in contiguous memory location. Each element has an index, which indicates the position they occupy in the array. The array can be seen as container that holds a collection of data. Elements in array can be accessed sequentially and be manipulated.

In Java programming language, array can be declared as

datatype [array_size] array_name = new datatype([array_size]);

The datatype can be double, float, and int.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS