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

How many types of assembly languages are there?

972


In the below example, how many string objects are created?

1047


List down the methods and interfaces of collection class in java.

984


what is predefined function in java?

982


What is difference between pointer and reference?

1068


How to sort an array in java without using sort method?

877


Is java util list serializable?

932


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1106


How does varargs work in java?

1095


What is an enumeration?

1068


When should we create our own custom exception classes?

1016


How do you delete a list in java?

950


What is the use of object and class classes?

1042


What's the purpose of static methods and static variables?

1098


What are different types of control structures?

977