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
Why is core java important?
What are the important features of Java 8 release?
What is local declaration?
What is variable explain?
What methodology can be utilized to link to a database?
What happens to a static var that is defined within a method of a class?
What are recursive functions? Give some examples?
Explain the significance of listiterator.
How does compareto work in java?
What is scope & storage allocation of global and extern variables? Explain with an example
What is fail first in java?
Does java support multiple inheritance or not?
What classes of exceptions may be caught by a catch clause in java programming?
What is keyset in java?
What's the difference between int and integer in java?