Java - Array Master Skill An Array is collection of Similar type of data and element are store continousely in memory location, " Java array is an object , which contain element of a similar data type, the element of an array are store in memory location. " Array in java is index-based the first element of the array is stored at the (0),zero th Index, 2nd element 1st index and so on. Type of Java Array There are two type of Array Single dimensional array Multi-dimensional array 1.Single Dimensional Array Array is collection of similar data element, and storage data in memory location For Example:- If we are store the name of 50 student name then we are crete an array of string (datatype) that can store 50 name of student string[]array=newstring[50] Syntax :- Datatype.Arrayname[arraysize] Data...
Comments
Post a Comment