Tag: array
-
Array and it types
Array: An array in Java is a group of like-typed variables referred to by a common name.To declare an array, define the variable type with square brackets . Following are some important points about Java arrays. In Java, all arrays are dynamically allocated. (discussed below) Arrays are stored in contagious memory [consecutive memory locations]. Since arrays are…