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
i need help

Describe, in general, how java garbage collector works?

Classes are attached into the JVM as they are referenced by name in a class that is already running in the JVM. So, how is the staring class loaded? The very first class is espec

You are required to  design & implement  online  food delivery  system  using Java RMI technology.  This involves writing both the server and the client program(s). Client programs

SMTP (Simple Mail Transfer Protocol) permits two mail servers to communicate using a easy language, and gives a step-by-step protocol for exchanging information. SMTP delivers m

Describe Inner Classes in java? An inner class is a class whose body is described inside another class, referred to as the top-level class. For instance: public class Queue {


list The Java Class Library? Java holds an extensive library of pre-written classes you can use in your programs. These classes are separated into groups known as packages. Th

how to write java programe and example programe

How to Creating Arrays in java? Declaring arrays merely says what type of values the array will hold. It does not form them. Java arrays are objects, and such as any other obje