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

What are the differences between stringbuffer and stringbuilder?

541


What 4 doubled?

544


What is function and its uses?

569


What are abstract classes and anonymous classes?

643


Can a method be overloaded based on different return type but same argument type?

546






Why does my function print none?

522


What is constructor chaining in java?

587


Can you give few examples of final classes defined in java api?

563


Why chararray() is preferred over string to store the password?

528


Can we create a class inside a class in java?

550


What are generic methods?

537


What is difference between add() and addelement() in vector?

1068


How are the elements of a gridbaglayout organized in java programming?

520


What is mutable object and immutable object?

632


How to create a base64 decoder in java8?

559