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 / priyanjan
Yes,it is possible to create the array of length 0. by
defining as:
int[] arr = {};
String[] s signifies the command line argument
| Is This Answer Correct ? | 29 Yes | 0 No |
Post New Answer View All Answers
What are the drawbacks for singleton class?
What is the purpose of the enableevents() method?
Explain an algorithm to find depth of a binary tree.
Explain about procedural programming language or structured programming language and its features?
Define array. Tell me about 2-D array.
Explain notifyall() method of object class ?
Can each java object keep track of all the threads that want to exclusively access it?
does java support pointers?
what is heap memory?
What does business logic mean?
Is it possible to write a regular expression to check if string is a number?
What is a method declaration?
How can we create an immutable class in java?
What is size () in java?
Explain the usage of this with constructors?