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


Please Help Members By Posting Answers For Below Questions

Do we have pointers in java?

524


Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

1444


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.

1568


what is comparable and comparator interface?

574


Can private class be inherited in java?

547






What is the size of integer?

581


What is the difference between exception and error in java?

489


Explain the difference between treeset and treemap in java?

525


What does those terms actually mean included in the j.d.k i.6?

1601


What is the file extension for java?

605


What is Recursion Function?

639


explain local datetime api in java8?

551


What do you mean by boolean?

576


What does three dots mean in java?

643


Name component subclasses that support painting in java programming?

630