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 void pointers?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
What is java used for on a computer?
What is instance synchronization?
What is java oops?
What are the various access specifiers for java classes?
can java object be locked down for exclusive use by a given thread? : Java thread
Explain the pointers in Java?
Break statement can be used as labels in java?
Explain about oops concepts.
How we can declare a static variable?
What is thread safe singleton?
What does a boolean method return?
What is difference between string and stringbuffer?
What are the benefits of operations?