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
Problem 1 Explain and Define the following concepts with appropriate examples a) Superclass b) Subclass c) Inheritance d) Exceptions e) Stream classes >>Defining and expl

Explain Code and Document Bases ? If you don't know the exact URL of the image, but you do know its name and in which it's in the similar directory as the applet, you can use

JMS is asynchronous in nature. Therefore not all the pieces need to be up all the time for the application to function as a whole. Even if the receiver is down the MOM will kept th

I need the five methods public class Ex1Program { public void start() { // Step 1. Declare and construct an array of 19 Movie objects (call the array films)

What is File Transfer Protocol? This protocol is used to upload the files on remote computers. This is used to transfer files among computer on TCP/IP network e.g. internet and

What is Constructor? A constructor is used to initialize a newly created object. It's called just after memory is allocated for the object. It can be used to initial

Prepare an android keyboard Project Description: I want to prepare an android keyboard that have many features.( i will describe later) I want the full app and a trial ver

What are the steps of working of TCP and IP protocols within internet transmission? TCP divide messages in several packets (capsulation) and sent these messages over the internet

Q. Write short on the method over ridding method in java? Ans. Method over ridding and dynamic binding: We have seen that a method in a super class is inherited by its subclass

student are required to construct classes for circle,triangle,trapezium and kite.