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
Can It is possible to synchronize the constructor of a Java Class?
how we can create packages in java?
What is java and why do we need it? Explain
Differentiate jar and war files?
What are Normalization Rules? Define Normalization?
Explain parallel processing in java8?
What is a variable declaration?
What is the difference between stringbuffer and stringbuilder?
What is empty string literal in java?
What restrictions are placed on method overloading in java programming?
What does string intern() method do?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is a private class in java?
What are scalar data types?