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 empty string literal in java?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
Explain the concept of hashtables?
What is string :: npos?
What is hashtable and explain features of hashtable?
What are strings in physics?
Which is the best approach for creating thread ?
What is an anonymous class in java?
Which is better singleton or static class?
Why is it important to initialize a variable?
What is string substring?
What is the major drawback of internal iteration over external iteration?
What is meant by call by reference?
How do you join strings in java?
What is a generic data type?