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 are the 8 data types in java?
Explain about static nested classes in java?
Why is core java important?
what are the methods in object?
Can private class be extended java?
What are keywords in java?
Differentiate between the constructors and methods in java?
What is arrays aslist in java?
How does linkedlist work in java?
What is function and its uses?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
What is a treeset class?
How do weakhashmap works?
What do you know about the garbate collector?
What is the difference between member variables initialization and assignment in a constructor?