is this possible to create an array of 0 length?
if so how? if not so why?
coz we have an array in main() likw this
"static void main(String [] s) then what it signifies?
Answer Posted / sushila
yes we can create array with 0 length.
public class A
{
static int b[];
public static void main(String args[])
{
System.out.println("-----------------");
System.out.println(b);
System.out.println("-----------------");
}
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is meant by method overriding?
What is java volatile?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What is the maximum size of byte array in java?
How big is a pointer?
What is the difference between this() and super() in java?
Can a method be static?
Can inner class be public in java?
What is illegal identifier in java?
Write a program to find the whether a number is an Armstrong number or not?
What is the difference between applet and application?
why an outer class cannot be declared as private?
What is difference in between java class and bean?
Explain the difference between jvm and jre?
What is the exact difference in between Unicast and Multicast object?