Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is sorting algorithm in java?

1089


Write a program in java to find the maximum and minimum value node from a circular linked list.

1095


What are methods and how are they defined?

1218


What are keywords in programming?

1020


What is the += operator called?

1068


What is assembly language?

993


What is native code?

1126


Explain polymorphism citing an example.

1053


Why singleton is not thread safe?

997


What is the default size of set in java?

969


Can a private method of a superclass be declared within a subclass?

1046


What is a vector in java?

1038


Is it necessary that each try block must be followed by a catch block?

1024


What does  mean in regex?

1059


What is the collections api?

1063