Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
Java fundamentals
1 Answer(s)      4 years and 2 months ago
Posted in : Java Interview Questions


Does Java support multi dimensional arrays?

Advertisement
View Answers

October 28, 2010 at 5:09 PM


hello,

Here is the answer,

The Java programming language does not really support multi-dimensional arrays. It does, however, supports an array of arrays. In Java, a two-dimensional array 'x' is an array of one-dimensional array. For instance :-

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

The expression x[i] is used to select the one-dimensional array; the expression x[i][j] is ued to select the element from that array. The first element of this array will be indexed with the "0" value and the last integer will be referenced by "length-1" indexed value. There is no array assignment operator.

Thanks.



Related Tutorials/Questions & Answers:
Java fundamentals
Java fundamentals  What is the difference between Java Bean and Java Class
Java fundamentals
Java fundamentals  What is 64 bit Java
Advertisements
Java fundamentals
Java fundamentals  What is heap in Java
Java fundamentals
Java fundamentals  Why Java uses Singly rooted hierarchy
Java fundamentals
Java fundamentals  What is meant by pass by reference and pass by value in Java
Java fundamentals
Java fundamentals  Does Java support multi dimensional arrays
Java fundamentals
Java fundamentals  What are the command line arguments
Java fundamentals
Java fundamentals  What is Coupling and Cohesion
Java fundamentals
Java fundamentals  What is the purpose of the Runtime class
Java fundamentals
Java fundamentals  If we have two public classes in a single java file, How I have to give the name of the particular java file and How I can compile
Java fundamentals
Java fundamentals  Can you have a constructor in abstract class
Java fundamentals
Java fundamentals  What do you understand by downcasting
Java fundamentals
Java fundamentals  Can I be able to override a final method
Java fundamentals
Java fundamentals  What are the ways to create Wrapper Objects
Java fundamentals
Java fundamentals  Does a class inherit the constructors of its superclass
Java fundamentals
Java fundamentals  How does the Object Oriented approach improve software development
Java Fundamentals - Java Beginners
Java Fundamentals  What is the difference between Java Bean and Java Class
JSP FUNDAMENTALS
JSP FUNDAMENTALS   ...; JSP termed as Java Server Pages is a technology introduced by Sun...; Syntax : < %@ page Language=?Java? extends=?<Class name>
Java 7 Language Fundamentals
This tutorial describes basic language features of Java 7
Expressions, Statements, and Blocks in java 7
In this section we will discuss expressions, Statements and Blocks in java 7. This is one type of Language Fundamentals
Core Java Training Topics
; fundamentals of  Java programming language and how to utilize... Training Course Outline 1. Fundamentals of the Java... Core Java Training Topics      
Control Flow Statements in java 7
Control Flow Statements in java 7 In this section we will discuss Control Flow Statements in java 7. This is one type of Language Fundamentals. Control Flow Statements : - In general program execution flow is from top to bottom
Java as an Object Oriented Language
Java as an Object Oriented Language   ... will discuss the OOPs concepts along with their role in developing the java... oriented languages. But in case of java,  it is a fully Object Oriented
Java Server Faces (JSF)
Java Server Faces (JSF)      ... To understand the fundamentals of the JSF framework and how it can be used to build rapid data-driven Java web applications. To make efficient
Free Java Training
Free Java training is provided online by Roseindia for all the non-programmers and programmers so that they can learn the Java programming language... the fundamentals of the language and then proceeds further. The positive point
Java Training Online Class
place for them to learn the fundamentals of Java. Java training online class...Java Training Online Class Java had taken the IT world by storm when it came into the scene and it is worth mentioning that dependency on Java has
Basic Java programming for Beginners
Basic Java programming for Beginners helps them to learn the fundamentals of the language easily and quickly. Java is an Object Oriented Programming language... computer is Java is being used. This opens up a lot of opportunity for young
OOPs Concept
the OOPs concepts along with  fundamentals  used to develop the java... and behavior. This feature is achieved in java through the class and object... within the class and makes it available only through  the methods. Java
Abstraction In Java for Java beginners
Abstraction In Java for Java beginners  Hi, As a beginner in Java I am looking for good tutorial that explains the Abstraction concept in Java... of Abstraction in Java? Thanks   Hi, What is abstraction in Java
java - Java Beginners
interested in demonstrating proficiency in the fundamentals of the Java...java  What is SCJP and write its benefits. How it is useful for JAVA programmers.  Hi Friend, Sun Certified Java Programmer
java - Java Beginners
interested in demonstrating proficiency in the fundamentals of the Java...java   What is SCJP and write its benefits. How it is useful for JAVA programmers.  Hi Friend, Sun Certified Java Programmer
 

 

 

DMCA.com