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 the intersection and union methods?
What are locale settings?
What are different types of control structures?
What is an object in java and how is it created?
What type of language is java?
How to add menushortcut to menu item?
How to set the permissions to a file in java?
Why do we use bufferedreader?
What is a parameter used for?
How are variables stored in memory?
What is the final class modifier?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
What are identifiers in java?
How do you sort an array in java?
What is the basic difference between string and stringbuffer object?