array, JAVA Programming

public class Tester {

static void test(int[] a) {

int[] b = new int[2];

a = b;

System.out.print(b.length);

System.out.print(a.length);

}

public static void main(String[] args) {

int[] a = new int[5];

test(a);

System.out.print(a.length);

}

}
Posted Date: 10/23/2012 2:13:42 AM | Location : United States







Related Discussions:- array, Assignment Help, Ask Question on array, Get Answer, Expert's Help, array Discussions

Write discussion on array
Your posts are moderated
Related Questions

1. Obtaining the new script: Download and save the attached comment CGI mailer script form-mail2.pl to your server's cgi-bin directory, and change the permissions on the script t


#question)i) devising ii) validating and iii) testing of algorithms...

What is casting? There are two types of casting, casting among primitive numeric types and casting among object references. Casting among numeric types is used to convert large

In the context of this course work, you are asked to write a quality and complexity analysis report by applying programming design and implementation metrics for the AnagramGame Ja

What is Operator Overloading? A few object oriented languages, notably C++, permit you to not only overload techniques but also operators like + or -. This is very menaingful w

any example of games that is created by java ?

If any of the above conditions does not met, then the program will generate compilation errors. Today Rahul has written his first program "Hello World", but he is not sure about th

The roster lets you keep track of the availability ("presence") of other users. A roster also allows you to organize users into groups such as "Friends" and "Co-workers". Other IM