answersLogoWhite

0

the different types of arrays are single dimensional, two dimensional and multidimensional arrays..

they can be declared in java as follows

1)for single dimensional:

int x[]=new int[5];

2)for 2-d array:

int x[][]=new int[5][4];

3)for multidimensional array:

combination of both 1 and 2nd declaration is allowed..

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you find the difference between two arrays in Java?

for arrays you can list the different arrays and what attributes that you give to them.


Where can one find advice about working with Java sorting arrays?

There are many places where one could find advice about working with Java sorting arrays. The best place to learn more about working with Java would be to contact Oracle.


What is the Java implementation for finding the median of two sorted arrays efficiently?

One efficient Java implementation for finding the median of two sorted arrays is to merge the arrays into one sorted array and then calculate the median based on the length of the combined array.


Is it possible to use arrays when using the java programming language?

It is possible to use arrays when employing java programming language. There are many different series of programming choice that can be employed with various end results.


Can ragged arrays created by using java?

I assume you mean that you have a number of rows, and that not all rows have the same number of "cells". Yes, in Java a two-dimensional array is implemented as an array of arrays (each item in the top-level array is, in itself, an array); a 3-dimensional array is an array of arrays of arrays, etc.; and there is no rule stating that all secondary (etc.) arrays must have the same number of elements.


How do you create a program in visual basic?

arrays programms in visual basic


Which one is better than arrays in java?

Better for what? Arrays have their purposes, other constructs have other purposes. Depending on what you need, an array may be just what you need.


How can you prove the given string by user is array or not in java?

Strings and Arrays are two totally different data types in Java and they will not match with one another.


What are associative arrays in Java programming language?

Java does not support associative arrays. However, you can achieve the same thing using a map.


How the oracle is connected to java and visual basic?

Oracle is the company that owns Java and is partnered with Microsoft who owns Visual Basic.


Why c and java arrays are start with zero and pascal arrays are start with one?

It's a difference in mentality; some believe 0 is the begin, and is thus the only logical choice, and some think the opposite.


What are the features of core java?

Core java refers to the core or basic concepts of the Java programming language. Things like encapsulation, inheritance, multi-threading, exception handling and other basic feature of java that comes as part of the Java standard edition forms Core Java