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 advantages of encapsulation in java?
What is difference between array and vector?
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.
How do you get length in java?
What is arguments in java?
What is method overloading in java ?
What are the two basic ways in which classes that can be run as threads may be defined?
What is the purpose of checked and unchecked exceptions in JAVA?
Can we clone singleton object in java?
List types of storage classes in java?
What is get () in java?
Explain different forms of polymorphism?
Can you explain the usages of class.forname()?
What is the difference between an array and an array list?
What are passing parameters?