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 / sushila

yes we can create array with 0 length.

public class A
{
static int b[];
public static void main(String args[])
{
System.out.println("-----------------");
System.out.println(b);
System.out.println("-----------------");
}
}

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is core java important?

1044


What are the important features of Java 8 release?

1086


What is local declaration?

971


What is variable explain?

1004


What methodology can be utilized to link to a database?

967


What happens to a static var that is defined within a method of a class?

1033


What are recursive functions? Give some examples?

1193


Explain the significance of listiterator.

1107


How does compareto work in java?

1040


What is scope & storage allocation of global and extern variables? Explain with an example

1043


What is fail first in java?

1205


Does java support multiple inheritance or not?

1107


What classes of exceptions may be caught by a catch clause in java programming?

1180


What is keyset in java?

1082


What's the difference between int and integer in java?

1166