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
I want to re-reach and use an object once it has been garbage collected. How it's possible?
How do you convert bytes to character in java?
Explain the access modifiers for a class, method and variables?
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 the r character?
What is meant by the value of a variable?
What is the difference between exception and error in java?
List out benefits of object oriented programming language?
What is palindrome in java?
What are new features introduced with java 8 ?
What is the main advantage of passing argument by reference?
What is double data type?
What is string data type?
Why java is platform independent? Explain.
What is <> used for in java?