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
What is an object's lock and which objects have locks? An object's lock is a mechanism that is used by multiple threads to get synchronized access to the object. A thread may i

EJB elements operate inside a container environment and rely heavily on the container to give security. The four key services needed for the security are: 1. Identification :

Output first x values in the fibonacci sequence, where x is an argument to the program. 0, 1, 1, 2, 3, 5, 8, ... Write the fibonacci creation function separate from the main func

The Web container is used for managing the servlet's life cycle. The Web container produces an instance of the servlet and then the container invokes the init() function. At the co

Explain Animate gifs? We can save 16 gif images of the previous instance in a single file in the form of an animated gif, and then used it in a regular tag to display a movi

In this assignment, you will implement the game of Boggle, a word game in which players connect adjacent letters on a 4x4 board to create as many words as possible. This is based o

how can i add script code in anouncement of a channel in a massneger the massnegr suport that but do not published it please help me please:((((((((((((((((((((((((((((((((((((((((

Struts framework                            J a v a Server Faces More matured since Struts has been started for a few years. It has got var

In pre-emptive scheduling, the highest priority task implements until it enters the waiting or dead states or a higher priority task comes into existence. In time slicing, a tas

Write a program that finds the minimum total number of shelves, including the initial one required for this loading process